mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
fix build
This commit is contained in:
@@ -380,7 +380,7 @@ export class AssetRepository {
|
|||||||
return this.db.insertInto('asset').values(asset).returningAll().executeTakeFirstOrThrow();
|
return this.db.insertInto('asset').values(asset).returningAll().executeTakeFirstOrThrow();
|
||||||
}
|
}
|
||||||
|
|
||||||
createWithMetadata(asset: Insertable<AssetTable> & { id: string }, size: number, metadata?: AssetMetadataItem[]) {
|
createWithMetadata(asset: Insertable<AssetTable> & { id: string }, size: number, metadata?: Omit<Insertable<AssetMetadataTable>, 'assetId'>[]) {
|
||||||
let query = this.db;
|
let query = this.db;
|
||||||
if (asset.livePhotoVideoId) {
|
if (asset.livePhotoVideoId) {
|
||||||
(query as any) = query.with('motion_asset', (qb) =>
|
(query as any) = query.with('motion_asset', (qb) =>
|
||||||
|
|||||||
@@ -361,7 +361,7 @@ export class AssetMediaService extends BaseService {
|
|||||||
await this.addToSharedLink(auth.sharedLink, duplicate.id);
|
await this.addToSharedLink(auth.sharedLink, duplicate.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.logger.debug(`Duplicate asset upload rejected: existing asset ${duplicateId}`);
|
this.logger.debug(`Duplicate asset upload rejected: existing asset ${duplicate.id}`);
|
||||||
return { status: AssetMediaStatus.DUPLICATE, id: duplicate.id };
|
return { status: AssetMediaStatus.DUPLICATE, id: duplicate.id };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ import {
|
|||||||
AssetStatus,
|
AssetStatus,
|
||||||
AssetType,
|
AssetType,
|
||||||
AssetVisibility,
|
AssetVisibility,
|
||||||
|
ChecksumAlgorithm,
|
||||||
ImmichWorker,
|
ImmichWorker,
|
||||||
JobName,
|
JobName,
|
||||||
JobStatus,
|
JobStatus,
|
||||||
@@ -287,6 +288,7 @@ export class AssetUploadService extends BaseService {
|
|||||||
ownerId: auth.user.id,
|
ownerId: auth.user.id,
|
||||||
libraryId: null,
|
libraryId: null,
|
||||||
checksum,
|
checksum,
|
||||||
|
checksumAlgorithm: ChecksumAlgorithm.sha1File,
|
||||||
originalPath: path,
|
originalPath: path,
|
||||||
deviceAssetId: assetData.deviceAssetId,
|
deviceAssetId: assetData.deviceAssetId,
|
||||||
deviceId: assetData.deviceId,
|
deviceId: assetData.deviceId,
|
||||||
|
|||||||
Reference in New Issue
Block a user