Skip to content

Commit 1064c4d

Browse files
committed
eslint fix
1 parent da293a8 commit 1064c4d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ app.post('/webhooks/bundestagio/update', async (req, res) => {
8585
await Promise.all(data.map(async (d) => {
8686
const period = parseInt(d.period, 10);
8787
const { type, countBefore, changedIds } = d.types.find(t => t.type === 'Gesetzgebung');
88-
const localCount = groups.find(c => c.period === period).types.find(ct => ct.type === type).count;
88+
const localCount = groups.find(c => c.period === period).types
89+
.find(ct => ct.type === type).count;
8990
// Append Changed IDs
9091
update.concat(changedIds);
9192
// Compare Counts Remote & Local
@@ -96,7 +97,8 @@ app.post('/webhooks/bundestagio/update', async (req, res) => {
9697
variables: { pageSize: 20, period, type },
9798
});
9899
// Find local Procedure Updates
99-
const localProcedureUpdates = await Procedure.find({ period, type }, { procedureId: 1, lastUpdateDate: 1 });
100+
const localProcedureUpdates = await Procedure
101+
.find({ period, type }, { procedureId: 1, lastUpdateDate: 1 });
100102
// Compare
101103
procedureUpdates.map((pu) => {
102104
const localData = localProcedureUpdates.find(ld => ld.procedureId === pu.procedureId);

0 commit comments

Comments
 (0)