translations
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2022-03-07 10:28:55 +01:00
parent a136d8b03d
commit 56bdb85af5
2 changed files with 7 additions and 7 deletions

View File

@ -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: {

View File

@ -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);
};
};