Skip to content

Commit 71fc0d0

Browse files
feat: cast to text instead of uuid
1 parent e79bab3 commit 71fc0d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/internal/repository/guests.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ func (r *GuestsRepository) FindGuestsWithActiveBooking(ctx context.Context, filt
240240
)
241241
AND (
242242
$5::text = ''
243-
OR (CONCAT_WS(' ', g.first_name, g.last_name), g.id) > ($5::text, $6::uuid)
243+
OR (CONCAT_WS(' ', g.first_name, g.last_name), g.id::text) > ($5::text, $6::text)
244244
)
245245
ORDER BY CONCAT_WS(' ', g.first_name, g.last_name) ASC, g.id ASC
246246
LIMIT $7`,

0 commit comments

Comments
 (0)