added new repo method UpdateGigaChatQuizFlag
This commit is contained in:
parent
b455e6f07d
commit
6f4789f42a
@ -739,3 +739,14 @@ func (r *QuizRepository) CheckQuizOwner(ctx context.Context, accountID string, q
|
||||
|
||||
return id == accountID, nil
|
||||
}
|
||||
|
||||
func (r *QuizRepository) UpdateGigaChatQuizFlag(ctx context.Context, quizID int64, accountID string) error {
|
||||
err := r.queries.UpdateGigaChatQuizFlag(ctx, sqlcgen.UpdateGigaChatQuizFlagParams{
|
||||
ID: quizID,
|
||||
Accountid: accountID,
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user