Skip to content

Commit

Permalink
fix: Filter unavailable appointments on prune
Browse files Browse the repository at this point in the history
  • Loading branch information
aksiksi committed Sep 1, 2023
1 parent 4d696dd commit b1a076c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion database/query.sql
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ WHERE id = ?;
-- name: PruneAppointmentsBeforeDate :many
UPDATE appointment
SET available = false
WHERE time < ?
WHERE time < ? AND available = true
RETURNING *;

-- name: ListNotifications :many
Expand Down
2 changes: 1 addition & 1 deletion pkg/models/query.sql.go

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

0 comments on commit b1a076c

Please sign in to comment.