mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +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
|
|
@ -234,11 +234,11 @@ export class SyncTestContext extends MediumTestContext<SyncService> {
|
|||
});
|
||||
}
|
||||
|
||||
async syncStream(auth: AuthDto, types: SyncRequestType[]) {
|
||||
async syncStream(auth: AuthDto, types: SyncRequestType[], reset?: boolean) {
|
||||
const stream = mediumFactory.syncStream();
|
||||
// Wait for 2ms to ensure all updates are available and account for setTimeout inaccuracy
|
||||
await wait(2);
|
||||
await this.sut.stream(auth, stream, { types });
|
||||
await this.sut.stream(auth, stream, { types, reset });
|
||||
|
||||
return stream.getResponse();
|
||||
}
|
||||
|
|
@ -481,6 +481,7 @@ const sessionInsert = ({
|
|||
const defaults: Insertable<SessionTable> = {
|
||||
id,
|
||||
userId,
|
||||
isPendingSyncReset: false,
|
||||
token: sha256(id),
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue