feat(tahesab): reset local success flags when remote docs were wiped
Clear tahesab_id on locally successful rows so they re-enter the send queue without touching panel customer codes. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -35,6 +35,19 @@ class TahesabDocSyncService
|
||||
return $this->publicSnapshot($job);
|
||||
}
|
||||
|
||||
public function isRunning(): bool
|
||||
{
|
||||
return ($this->read()['running'] ?? false) === true;
|
||||
}
|
||||
|
||||
public function clearIdleSnapshot(): void
|
||||
{
|
||||
if ($this->isRunning()) {
|
||||
return;
|
||||
}
|
||||
Cache::forget(self::CACHE_KEY);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array{ok:bool,message:string,doc_sync:array}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user