Finish adding sqlc and fix some bugs

This commit is contained in:
2024-08-01 16:49:59 +02:00
parent 459a4e5c7d
commit dd49a1e687
8 changed files with 77 additions and 27 deletions

View File

@ -292,8 +292,8 @@ WHERE
`
type GetRestrictionsForRoomByDateParams struct {
EndDate pgtype.Date
StartDate pgtype.Date
EndDate pgtype.Date
RoomID int32
}
@ -307,7 +307,7 @@ type GetRestrictionsForRoomByDateRow struct {
}
func (q *Queries) GetRestrictionsForRoomByDate(ctx context.Context, arg GetRestrictionsForRoomByDateParams) ([]GetRestrictionsForRoomByDateRow, error) {
rows, err := q.db.Query(ctx, getRestrictionsForRoomByDate, arg.EndDate, arg.StartDate, arg.RoomID)
rows, err := q.db.Query(ctx, getRestrictionsForRoomByDate, arg.StartDate, arg.EndDate, arg.RoomID)
if err != nil {
return nil, err
}