Commit 45d6941b authored by Maxim Ivanov's avatar Maxim Ivanov
Browse files

Adjust cursor in ListAll

parent 4a8f7065
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -151,7 +151,7 @@ func StorageListObjectsAll(ctx context.Context, logger *zap.Logger, db *sql.DB,
	cursorQuery := ""
	params := []interface{}{collection, limit + 1}
	if storageCursor != nil {
		cursorQuery = ` AND (collection, user_id, key) > ($1, $3, $4) `
		cursorQuery = ` AND (user_id, key) > ($3, $4) `
		params = append(params, storageCursor.UserID, storageCursor.Key)
	}