diff --git a/app/http/endpoints/api/admin/botstaff/list.go b/app/http/endpoints/api/admin/botstaff/list.go index d9919b9..c60d873 100644 --- a/app/http/endpoints/api/admin/botstaff/list.go +++ b/app/http/endpoints/api/admin/botstaff/list.go @@ -54,7 +54,10 @@ func ListBotStaffHandler(ctx *gin.Context) { }) } - _ = group.Wait() // error not possible + if err := group.Wait(); err != nil { + ctx.JSON(500, utils.ErrorJson(err)) + return + } ctx.JSON(200, users) } diff --git a/go.mod b/go.mod index 6802d05..98a2608 100644 --- a/go.mod +++ b/go.mod @@ -119,5 +119,3 @@ require ( gopkg.in/yaml.v3 v3.0.1 // indirect nhooyr.io/websocket v1.8.4 // indirect ) - -replace github.com/TicketsBot/common => ../common diff --git a/go.sum b/go.sum index 772d5fc..de4174a 100644 --- a/go.sum +++ b/go.sum @@ -45,6 +45,8 @@ github.com/TicketsBot/analytics-client v0.0.0-20240415004242-017c23403af3 h1:lSv github.com/TicketsBot/analytics-client v0.0.0-20240415004242-017c23403af3/go.mod h1:9Z9qP/yovb6DUe1KlzgN2wicc+8ey6MMoxfynFbMyRg= github.com/TicketsBot/archiverclient v0.0.0-20240613013458-accc062facc2 h1:x2AZWm2zeyIJxVJbq9JQB1Q2mAaaTuCbCiPIU1E8G1o= github.com/TicketsBot/archiverclient v0.0.0-20240613013458-accc062facc2/go.mod h1:sc1kAppJn1fX6ZCsiU3ltGiXIj9GEZkjkdh8fbmwxWQ= +github.com/TicketsBot/common v0.0.0-20240613013221-1e27eb8bfe37 h1:NC5fn+uAup0JxLiX85+bjVdyfUUXW3pKZYmp72/29hw= +github.com/TicketsBot/common v0.0.0-20240613013221-1e27eb8bfe37/go.mod h1:UZ6Kzobh9akWyon7iGLPb4w/9gmKV+sLuR6PmthsS+U= github.com/TicketsBot/database v0.0.0-20240614143550-e9b219d41743 h1:wTGntdybAv9GcWYE3RJiAIo4I6rYrfG9uSpHaF0KUXY= github.com/TicketsBot/database v0.0.0-20240614143550-e9b219d41743/go.mod h1:gAtOoQKZfCkQ4AoNWQUSl51Fnlqk+odzD/hZ1e1sXyI= github.com/TicketsBot/logarchiver v0.0.0-20220326162808-cdf0310f5e1c h1:OqGjFH6mbE6gd+NqI2ARJdtH3UUvhiAkD0r0fhGJK2s=