feat: ack sync reset (#20703)

This commit is contained in:
Zack Pollard
2025-08-05 21:30:19 +01:00
committed by GitHub
parent 9567a2a560
commit 0a9cbf01d2
9 changed files with 67 additions and 20 deletions

View File

@@ -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