upd method DeleteYclientsTimeslots
This commit is contained in:
parent
abea1d7874
commit
8b1df78c8e
@ -1595,7 +1595,7 @@ INSERT INTO YclientsTimeSlots (SalonID, IsEnabled, WeekdaysSettings, DatesSettin
|
||||
VALUES ($1, $2, $3, $4) RETURNING *;
|
||||
|
||||
-- name: DeleteYclientsTimeslots :exec
|
||||
UPDATE YclientsTimeSlots SET Deleted = true WHERE ID = ANY($1::bigint[]);
|
||||
UPDATE YclientsTimeSlots SET Deleted = true WHERE NOT (ID = ANY($1::bigint[]));
|
||||
|
||||
-- name: GetTimeslotsByIDYclients :one
|
||||
SELECT * FROM YclientsTimeSlots WHERE SalonID = $1 AND Deleted = false;
|
||||
@ -1642,7 +1642,7 @@ func (q *Queries) DeleteYclientsServices(ctx context.Context, dollar_1 []int64)
|
||||
}
|
||||
|
||||
const deleteYclientsTimeslots = `-- name: DeleteYclientsTimeslots :exec
|
||||
UPDATE YclientsTimeSlots SET Deleted = true WHERE ID = ANY($1::bigint[])
|
||||
UPDATE YclientsTimeSlots SET Deleted = true WHERE NOT (ID = ANY($1::bigint[]))
|
||||
`
|
||||
|
||||
func (q *Queries) DeleteYclientsTimeslots(ctx context.Context, dollar_1 []int64) error {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user