translations
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
a136d8b03d
commit
56bdb85af5
|
@ -11,12 +11,12 @@ module.exports = Self => {
|
|||
{
|
||||
arg: 'started',
|
||||
type: 'date',
|
||||
description: 'The date calendar start',
|
||||
description: 'The calendar date start',
|
||||
},
|
||||
{
|
||||
arg: 'ended',
|
||||
type: 'date',
|
||||
description: 'The date calendar end',
|
||||
description: 'The calendar date end',
|
||||
}
|
||||
],
|
||||
returns: {
|
||||
|
|
|
@ -3,15 +3,15 @@ module.exports = Self => {
|
|||
description: 'Get zone events filtered for date and prioritized by type',
|
||||
accepts: [
|
||||
{
|
||||
arg: 'zonesId',
|
||||
arg: 'zoneIds',
|
||||
type: ['number'],
|
||||
description: 'The zones id',
|
||||
description: 'The zone identifiers or ids',
|
||||
required: true
|
||||
},
|
||||
{
|
||||
arg: 'date',
|
||||
type: 'date',
|
||||
description: 'The date calendar',
|
||||
description: 'The calendar date',
|
||||
}
|
||||
],
|
||||
returns: {
|
||||
|
@ -24,7 +24,7 @@ module.exports = Self => {
|
|||
}
|
||||
});
|
||||
|
||||
Self.getZoneClosing = async(zonesId, date, options) => {
|
||||
Self.getZoneClosing = async(zoneIds, date, options) => {
|
||||
const myOptions = {};
|
||||
|
||||
if (typeof options == 'object')
|
||||
|
@ -52,6 +52,6 @@ module.exports = Self => {
|
|||
ORDER BY type='day' DESC, type='range' DESC, type='indefinitely' DESC) z
|
||||
GROUP BY z.id`;
|
||||
|
||||
return Self.rawSql(query, [date, date, date, zonesId], myOptions);
|
||||
return Self.rawSql(query, [date, date, date, zoneIds], myOptions);
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue