fix : sync
This commit is contained in:
parent
90114d4864
commit
d657c48600
|
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
namespace App\Filament\Pages;
|
namespace App\Filament\Pages;
|
||||||
|
|
||||||
|
use App\Models\OsurgInitial;
|
||||||
use App\Models\SyncLog;
|
use App\Models\SyncLog;
|
||||||
use App\Services\OsurgImportService;
|
use App\Services\OsurgImportService;
|
||||||
use App\Services\SyncService;
|
use App\Services\SyncService;
|
||||||
|
|
@ -58,7 +59,7 @@ public function getTitle(): string
|
||||||
|
|
||||||
public function getPendingCount(): int
|
public function getPendingCount(): int
|
||||||
{
|
{
|
||||||
return SyncLog::changesSince(SyncLog::lastSyncId())->count();
|
return SyncLog::changesSince((int) OsurgInitial::val('our_sync_cursor', 0))->count();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getLastSyncTime(): string
|
public function getLastSyncTime(): string
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue