fix: list fixes and ci improvement
PR Checks / lint-test-and-build (pull_request) Successful in 3m6s
PR Checks / lint-test-and-build (pull_request) Successful in 3m6s
This commit is contained in:
@@ -152,7 +152,7 @@ func (s *ListService) OrderLists(ctx context.Context, authUserID string, listIDs
|
||||
|
||||
if !isPermutation(listIDs, serverIDs) {
|
||||
slog.ErrorContext(ctx, "no permutation",
|
||||
slog.Any("client_lids_ids", listIDs),
|
||||
slog.Any("client_list_ids", listIDs),
|
||||
slog.Any("server_list_ids", serverIDs))
|
||||
return ErrStaleListIDs
|
||||
}
|
||||
|
||||
@@ -107,6 +107,7 @@ func (r *ListRepo) LockUsersLists(ctx context.Context, userID string) ([]string,
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to lock users lists: %w", err)
|
||||
}
|
||||
defer rows.Close()
|
||||
|
||||
ids := make([]string, 0, 16)
|
||||
for rows.Next() {
|
||||
|
||||
Reference in New Issue
Block a user