Compare commits
No commits in common. "renew_tests" and "main" have entirely different histories.
renew_test
...
main
@ -137,13 +137,13 @@ func (r *AccountRepository) DeleteAccount(ctx context.Context, accountID string)
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
err = r.queries.DeletePrivilegeByAccID(ctx, uuidAccount)
|
err = r.queries.DeleteAccountById(ctx, uuidAccount)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
tx.Rollback()
|
tx.Rollback()
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
err = r.queries.DeleteAccountById(ctx, uuidAccount)
|
err = r.queries.DeletePrivilegeByAccID(ctx, uuidAccount)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
tx.Rollback()
|
tx.Rollback()
|
||||||
return err
|
return err
|
||||||
|
@ -137,12 +137,12 @@ func (r *QuizRepository) GetQuizList(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if deps.Status != "" {
|
if deps.Status != "" {
|
||||||
//data = append(data, deps.Status)
|
data = append(data, deps.Status)
|
||||||
whereClause = append(whereClause, fmt.Sprintf("status = '%s'", deps.Status))
|
whereClause = append(whereClause, fmt.Sprintf("status = $%d", len(data)))
|
||||||
}
|
}
|
||||||
if deps.Search != "" {
|
if deps.Search != "" {
|
||||||
//data = append(data, deps.Search)
|
data = append(data, deps.Search)
|
||||||
whereClause = append(whereClause, fmt.Sprintf("to_tsvector('russian', name) @@ to_tsquery('russian', '%s')", deps.Search))
|
whereClause = append(whereClause, fmt.Sprintf("to_tsvector('russian', name) @@ to_tsquery('russian', $%d)", len(data)))
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(whereClause) != 0 {
|
if len(whereClause) != 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user