--
This commit is contained in:
parent
e0822abea8
commit
6915fb59e2
@ -96,7 +96,7 @@ func New(ctx context.Context, opts interface{}, ver appInit.Version) (appInit.Co
|
||||
|
||||
authClient := auth.NewAuthClient(options.AuthServiceURL)
|
||||
|
||||
pgdal, err := dal.New(ctx, options.PostgresCredentials, authClient, nil)
|
||||
pgdal, err := dal.New(ctx, options.PostgresCredentials, authClient)
|
||||
if err != nil {
|
||||
fmt.Println("NEW", err)
|
||||
return nil, err
|
||||
|
BIN
core.git
Executable file
BIN
core.git
Executable file
Binary file not shown.
2
go.mod
2
go.mod
@ -15,7 +15,7 @@ require (
|
||||
github.com/xuri/excelize/v2 v2.8.1
|
||||
go.uber.org/zap v1.27.0
|
||||
penahub.gitlab.yandexcloud.net/backend/penahub_common v0.0.0-20240223054633-6cb3d5ce45b6
|
||||
penahub.gitlab.yandexcloud.net/backend/quiz/common.git v0.0.0-20240328193100-9eea1d69da86
|
||||
penahub.gitlab.yandexcloud.net/backend/quiz/common.git v0.0.0-20240328235152-e4b40cc929d5
|
||||
penahub.gitlab.yandexcloud.net/backend/quiz/worker.git v0.0.0-20240313171802-7da5fbb4caf3
|
||||
)
|
||||
|
||||
|
4
go.sum
4
go.sum
@ -262,5 +262,9 @@ penahub.gitlab.yandexcloud.net/backend/quiz/common.git v0.0.0-20240325084116-830
|
||||
penahub.gitlab.yandexcloud.net/backend/quiz/common.git v0.0.0-20240325084116-830f54870853/go.mod h1:okduDAq0NVVDcM+TMyrd4mVXzBMeTzYI2B2/yi1sL1Y=
|
||||
penahub.gitlab.yandexcloud.net/backend/quiz/common.git v0.0.0-20240328193100-9eea1d69da86 h1:IZ4N52+t1zogpbVMojNMxz8OokjYvtERy1hhH1IcfTw=
|
||||
penahub.gitlab.yandexcloud.net/backend/quiz/common.git v0.0.0-20240328193100-9eea1d69da86/go.mod h1:/DcyAjBh41IbomuDu5QzhL9flZW6lWO3ZAEbUXKobk0=
|
||||
penahub.gitlab.yandexcloud.net/backend/quiz/common.git v0.0.0-20240328222308-76b883af1134 h1:2XZbKypA/9bCdEmVx1skKduU5or3khl6u7+5TxyTSPc=
|
||||
penahub.gitlab.yandexcloud.net/backend/quiz/common.git v0.0.0-20240328222308-76b883af1134/go.mod h1:okduDAq0NVVDcM+TMyrd4mVXzBMeTzYI2B2/yi1sL1Y=
|
||||
penahub.gitlab.yandexcloud.net/backend/quiz/common.git v0.0.0-20240328235152-e4b40cc929d5 h1:9jEKhdZpNrapSaX3LXMk6LwY13mpNULmwi9ED8u7Nw4=
|
||||
penahub.gitlab.yandexcloud.net/backend/quiz/common.git v0.0.0-20240328235152-e4b40cc929d5/go.mod h1:okduDAq0NVVDcM+TMyrd4mVXzBMeTzYI2B2/yi1sL1Y=
|
||||
penahub.gitlab.yandexcloud.net/backend/quiz/worker.git v0.0.0-20240313171802-7da5fbb4caf3 h1:BLHIUnJAttW9OAW7A63H9ON/HPhXdpBa/YPUQWD4ORA=
|
||||
penahub.gitlab.yandexcloud.net/backend/quiz/worker.git v0.0.0-20240313171802-7da5fbb4caf3/go.mod h1:/BFcX4F10DRuFuAHlwkKO+1QAXPL4i49x1tsrTwxlqE=
|
||||
|
@ -98,10 +98,10 @@ func (s *Service) AllServiceStatistics(ctx *fiber.Ctx) error {
|
||||
ctx.Status(fiber.StatusBadRequest).SendString("Invalid request data")
|
||||
}
|
||||
|
||||
allSvcStats, err := s.dal.StatisticsRepo.AllServiceStatistics(ctx.Context(), req.From, req.To)
|
||||
if err != nil {
|
||||
return ctx.Status(fiber.StatusInternalServerError).SendString(err.Error())
|
||||
}
|
||||
// allSvcStats, err := s.dal.StatisticsRepo.AllServiceStatistics(ctx.Context(), req.From, req.To)
|
||||
// if err != nil {
|
||||
// return ctx.Status(fiber.StatusInternalServerError).SendString(err.Error())
|
||||
// }
|
||||
|
||||
return ctx.Status(fiber.StatusOK).JSON(allSvcStats)
|
||||
return ctx.Status(fiber.StatusOK).SendString("debug")/* .JSON(allSvcStats) */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user