diff --git a/server/src/repositories/sync.repository.ts b/server/src/repositories/sync.repository.ts index 36100979d9..11b35178d4 100644 --- a/server/src/repositories/sync.repository.ts +++ b/server/src/repositories/sync.repository.ts @@ -1,5 +1,5 @@ import { Injectable } from '@nestjs/common'; -import { Kysely, SelectQueryBuilder, sql } from 'kysely'; +import { Kysely, SelectQueryBuilder } from 'kysely'; import { InjectKysely } from 'nestjs-kysely'; import { columns } from 'src/database'; import { DummyValue, GenerateSql } from 'src/decorators'; @@ -250,12 +250,7 @@ class AlbumToAssetSync extends BaseSync { params: [{ nowId: DummyValue.UUID, userId: DummyValue.UUID }, DummyValue.UUID, DummyValue.UUID, DummyValue.UUID], stream: true, }) - getBackfill( - { nowId, userId }: SyncQueryOptions, - albumId: string, - afterUpdateId: string | undefined, - beforeUpdateId: string, - ) { + getBackfill({ nowId }: SyncQueryOptions, albumId: string, afterUpdateId: string | undefined, beforeUpdateId: string) { return this.db .selectFrom('album_asset as album_assets') .select(['album_assets.assetsId as assetId', 'album_assets.albumsId as albumId', 'album_assets.updateId']) diff --git a/server/src/services/sync.service.ts b/server/src/services/sync.service.ts index 4d9212e4ca..fab092a6b3 100644 --- a/server/src/services/sync.service.ts +++ b/server/src/services/sync.service.ts @@ -24,7 +24,6 @@ import { getMyPartnerIds } from 'src/utils/asset.util'; import { hexOrBufferToBase64 } from 'src/utils/bytes'; import { setIsEqual } from 'src/utils/set'; import { fromAck, mapJsonLine, serialize, SerializeOptions, toAck } from 'src/utils/sync'; -import { v7 } from 'uuid'; type CheckpointMap = Partial>; type AssetLike = Omit & {