mirror of
https://github.com/immich-app/immich.git
synced 2026-03-01 10:08:42 +03:00
feat: ack sync reset (#20703)
This commit is contained in:
@@ -37,6 +37,16 @@ export class SessionRepository {
|
||||
.executeTakeFirst();
|
||||
}
|
||||
|
||||
@GenerateSql({ params: [DummyValue.UUID] })
|
||||
async isPendingSyncReset(id: string) {
|
||||
const result = await this.db
|
||||
.selectFrom('session')
|
||||
.select(['isPendingSyncReset'])
|
||||
.where('id', '=', id)
|
||||
.executeTakeFirst();
|
||||
return result?.isPendingSyncReset ?? false;
|
||||
}
|
||||
|
||||
@GenerateSql({ params: [DummyValue.STRING] })
|
||||
getByToken(token: string) {
|
||||
return this.db
|
||||
|
||||
Reference in New Issue
Block a user