Skip to content

Commit 3a45be7

Browse files
committed
more lint errors
1 parent df8a30c commit 3a45be7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/scripts/webhook.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default async (data) => {
3131
const update = [];
3232
await Promise.all(data.map(async (d) => {
3333
const period = parseInt(d.period, 10);
34-
const { type, countBefore, changedIds } = d.types.find(t => { return t.type === 'Gesetzgebung' || t.type === 'Antrag'; });
34+
const { type, countBefore, changedIds } = d.types.find(t => t.type === 'Gesetzgebung' || t.type === 'Antrag');
3535
const group = groups.find(c => c.period === period);
3636
const localGroup = group ? group.types.find(ct => ct.type === type) : null;
3737
const localCount = localGroup ? localGroup.count : 0;
@@ -44,18 +44,18 @@ export default async (data) => {
4444
query: getProcedureUpdates,
4545
variables: { period, type },
4646
});
47-
// Find local Procedure Updates
47+
// Find local Procedure Updates
4848
const localProcedureUpdates = await ProcedureModel.find(
4949
{ period, type },
5050
{ procedureId: 1, bioUpdateAt: 1 },
5151
);
52-
// Compare
52+
// Compare
5353
procedureUpdates.forEach((pu) => {
5454
const localData = localProcedureUpdates.find(ld => ld.procedureId === pu.procedureId);
5555
if (
5656
!localData ||
57-
(pu.bioUpdateAt &&
58-
new Date(localData.bioUpdateAt).getTime() !== new Date(pu.bioUpdateAt).getTime())
57+
(pu.bioUpdateAt &&
58+
new Date(localData.bioUpdateAt).getTime() !== new Date(pu.bioUpdateAt).getTime())
5959
) {
6060
update.push(pu.procedureId);
6161
}

0 commit comments

Comments
 (0)