Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion db/gen/gate-management-for-app.sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion db/queries/gate-management-for-app.sql
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ WITH student_lookup AS (
accommodation_lookup AS (
SELECT id, hostel_id, student_id
FROM accomodation_details
WHERE student_id = (SELECT id FROM student_lookup)
WHERE
student_id = (SELECT id FROM student_lookup)
AND payment_status = 'COMPLETED'
),
new_check_in AS (
INSERT INTO hostel_check_in (accomodation_id, checked_in_by)
Expand Down