Fix datasync for missing resources

This commit is contained in:
Tomaž Jerman
2020-12-29 16:44:50 +01:00
parent 04054ca07f
commit bea585aefb
+4 -1
View File
@@ -64,7 +64,10 @@ func (dp *dataProcesser) Process(ctx context.Context, payload []byte) (Processer
continue
}
dp.SyncService.DeleteRecord(ctx, rec)
// Handle edge cases where the data doesn't exist anymore
if rec != nil {
dp.SyncService.DeleteRecord(ctx, rec)
}
processed++
continue