3676-zone_delivery-days #891
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#891
Loading…
Reference in New Issue
No description provided.
Delete Branch "3676-zone_delivery-days"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -0,0 +3,4 @@
description: 'Get zone events filtered for date and prioritized by type',
accepts: [
{
arg: 'zonesId',
zoneIds
@ -0,0 +5,4 @@
{
arg: 'zonesId',
type: ['number'],
description: 'The zones id',
The zone identifiers or ids
@ -0,0 +11,4 @@
{
arg: 'date',
type: 'date',
description: 'The date calendar',
The calendar date
@ -0,0 +56,4 @@
OR ? BETWEEN started AND ended
OR INSTR(weekDays, SUBSTRING(DAYNAME(?), 1, 3) ) > 0
)
AND z.id IN (${paramsString})
try not to use variables instead of "?" to prevent posible sql injections
@ -0,0 +60,4 @@
ORDER BY type='day' DESC, type='range' DESC, type='indefinitely' DESC) z
GROUP BY z.id`;
return await Self.rawSql(query, paramsSql, myOptions);
is the await needed or can return the promise?
LGTM