This commit is contained in:
Pasha 2025-05-14 15:58:58 +03:00
parent 86769e3c02
commit cf2767a524
3 changed files with 4 additions and 2 deletions

@ -91,7 +91,7 @@ func (r *GigaChatTaskScheduler) fetchMessages(ctx context.Context) {
} }
func (r *GigaChatTaskScheduler) handleMessage(ctx context.Context, msg MessageGigaChat) { func (r *GigaChatTaskScheduler) handleMessage(ctx context.Context, msg MessageGigaChat) {
listQuestions, _, err := r.dal.QuestionRepo.GetQuestionList(ctx, 100_000, 0, 0, 0, uint64(msg.QuizID), false, false, "", "") listQuestions, _, err := r.dal.QuestionRepo.GetQuestionList(ctx, 100_000, 0, 0, 0, uint64(msg.QuizID), false, false, "", "", 0)
if err != nil { if err != nil {
r.logger.Error("failed to get question list", zap.Error(err)) r.logger.Error("failed to get question list", zap.Error(err))
return return

2
go.mod

@ -5,7 +5,7 @@ go 1.23.2
toolchain go1.23.4 toolchain go1.23.4
require ( require (
gitea.pena/SQuiz/common v0.0.0-20250514101340-d27fa4798a14 gitea.pena/SQuiz/common v0.0.0-20250514124515-870e52266ca5
github.com/go-redis/redis/v8 v8.11.5 github.com/go-redis/redis/v8 v8.11.5
github.com/go-resty/resty/v2 v2.16.5 github.com/go-resty/resty/v2 v2.16.5
github.com/gofiber/fiber/v2 v2.52.4 github.com/gofiber/fiber/v2 v2.52.4

2
go.sum

@ -2,6 +2,8 @@ gitea.pena/PenaSide/common v0.0.0-20250103085335-91ea31fee517 h1:EgBe8VcdPwmxbSz
gitea.pena/PenaSide/common v0.0.0-20250103085335-91ea31fee517/go.mod h1:91EuBCgcqgJ6mG36n2pds8sPwwfaJytLWOzY3h2YFKU= gitea.pena/PenaSide/common v0.0.0-20250103085335-91ea31fee517/go.mod h1:91EuBCgcqgJ6mG36n2pds8sPwwfaJytLWOzY3h2YFKU=
gitea.pena/SQuiz/common v0.0.0-20250514101340-d27fa4798a14 h1:2yOBm9dS7PQ458GBPbVdnbKovAP8SWFqa5rWfzzCj5w= gitea.pena/SQuiz/common v0.0.0-20250514101340-d27fa4798a14 h1:2yOBm9dS7PQ458GBPbVdnbKovAP8SWFqa5rWfzzCj5w=
gitea.pena/SQuiz/common v0.0.0-20250514101340-d27fa4798a14/go.mod h1:zCrUwDh0APpztKk6NUqTZv+zhjVbWpGBJiJ5z9dAH0U= gitea.pena/SQuiz/common v0.0.0-20250514101340-d27fa4798a14/go.mod h1:zCrUwDh0APpztKk6NUqTZv+zhjVbWpGBJiJ5z9dAH0U=
gitea.pena/SQuiz/common v0.0.0-20250514124515-870e52266ca5 h1:C+iCsGMSUJonOTNNk8wWYOfzZ0Jjw+2IQ5FaEGwRVT0=
gitea.pena/SQuiz/common v0.0.0-20250514124515-870e52266ca5/go.mod h1:zCrUwDh0APpztKk6NUqTZv+zhjVbWpGBJiJ5z9dAH0U=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/ClickHouse/clickhouse-go v1.5.4 h1:cKjXeYLNWVJIx2J1K6H2CqyRmfwVJVY1OV1coaaFcI0= github.com/ClickHouse/clickhouse-go v1.5.4 h1:cKjXeYLNWVJIx2J1K6H2CqyRmfwVJVY1OV1coaaFcI0=
github.com/ClickHouse/clickhouse-go v1.5.4/go.mod h1:EaI/sW7Azgz9UATzd5ZdZHRUhHgv5+JMS9NSr2smCJI= github.com/ClickHouse/clickhouse-go v1.5.4/go.mod h1:EaI/sW7Azgz9UATzd5ZdZHRUhHgv5+JMS9NSr2smCJI=