fix : sync issu

This commit is contained in:
SajjadMahmoody
2026-04-19 11:29:57 +03:30
parent d657c48600
commit 95592aa510
6 changed files with 63 additions and 22 deletions
+2 -3
View File
@@ -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),
]);
}