Updated var name
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2021-06-16 13:14:13 +02:00
parent e7c62d2e71
commit 9c09d60775
1 changed files with 4 additions and 4 deletions

View File

@ -16,8 +16,8 @@ module.exports = {
}; };
const travels = await this.fetchTravels(args); const travels = await this.fetchTravels(args);
const travelsId = travels.map(travel => travel.id); const travelIds = travels.map(travel => travel.id);
const entries = await this.fetchEntries(travelsId); const entries = await this.fetchEntries(travelIds);
const map = new Map(); const map = new Map();
for (let travel of travels) for (let travel of travels)
@ -83,8 +83,8 @@ module.exports = {
return this.rawSql(query); return this.rawSql(query);
}, },
fetchEntries(travelsId) { fetchEntries(travelIds) {
return this.rawSqlFromDef('entries', [travelsId]); return this.rawSqlFromDef('entries', [travelIds]);
} }
}, },
components: { components: {