mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
feat: pending sync reset flag (#19861)
This commit is contained in:
parent
34f0f6c813
commit
4b3a4725c6
28 changed files with 499 additions and 27 deletions
|
|
@ -13,6 +13,7 @@ where
|
|||
-- SessionRepository.getByToken
|
||||
select
|
||||
"sessions"."id",
|
||||
"sessions"."isPendingSyncReset",
|
||||
"sessions"."updatedAt",
|
||||
"sessions"."pinExpiresAt",
|
||||
(
|
||||
|
|
@ -71,3 +72,15 @@ set
|
|||
"pinExpiresAt" = $1
|
||||
where
|
||||
"userId" = $2
|
||||
|
||||
-- SessionRepository.resetSyncProgress
|
||||
begin
|
||||
update "sessions"
|
||||
set
|
||||
"isPendingSyncReset" = $1
|
||||
where
|
||||
"id" = $2
|
||||
delete from "session_sync_checkpoints"
|
||||
where
|
||||
"sessionId" = $1
|
||||
commit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue