fix : sync issu
This commit is contained in:
@@ -25,11 +25,10 @@ public function export(Request $request): JsonResponse
|
||||
return response()->json(['error' => 'Unauthorized'], 401);
|
||||
}
|
||||
|
||||
$since = (int) $request->query('since', 0);
|
||||
$since = $request->query('since') ?: null;
|
||||
|
||||
return response()->json([
|
||||
'last_sync_id' => SyncLog::lastSyncId(),
|
||||
'changes' => SyncLog::changesSince($since),
|
||||
'changes' => SyncLog::changesSince($since),
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user