File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export default async (data) => {
28
28
} ,
29
29
] ) ;
30
30
31
- const update = [ ] ;
31
+ let update = [ ] ;
32
32
await Promise . all ( data . map ( async ( d ) => {
33
33
const period = parseInt ( d . period , 10 ) ;
34
34
const types = d . types . filter ( t => t . type === 'Gesetzgebung' || t . type === 'Antrag' ) ;
@@ -38,9 +38,9 @@ export default async (data) => {
38
38
const localGroup = group ? group . types . find ( ct => ct . type === type ) : null ;
39
39
const localCount = localGroup ? localGroup . count : 0 ;
40
40
// Append Changed IDs
41
- update . concat ( changedIds ) ;
41
+ update = update . concat ( changedIds ) ;
42
42
// Compare Counts Remote & Local
43
- if ( countBefore > localCount ) {
43
+ if ( countBefore > localCount && countBefore >= 0 ) {
44
44
// Find remote Procedure Updates
45
45
const { data : { procedureUpdates } } = await client . query ( {
46
46
query : getProcedureUpdates ,
You can’t perform that action at this time.
0 commit comments