mirror of
https://github.com/immich-app/immich
synced 2026-08-29 13:15:45 +00:00
fix build
This commit is contained in:
parent
0c7f2dd8d2
commit
5133ff1909
3 changed files with 4 additions and 2 deletions
|
|
@ -380,7 +380,7 @@ export class AssetRepository {
|
|||
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;
|
||||
if (asset.livePhotoVideoId) {
|
||||
(query as any) = query.with('motion_asset', (qb) =>
|
||||
|
|
|
|||
|
|
@ -361,7 +361,7 @@ export class AssetMediaService extends BaseService {
|
|||
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 };
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ import {
|
|||
AssetStatus,
|
||||
AssetType,
|
||||
AssetVisibility,
|
||||
ChecksumAlgorithm,
|
||||
ImmichWorker,
|
||||
JobName,
|
||||
JobStatus,
|
||||
|
|
@ -287,6 +288,7 @@ export class AssetUploadService extends BaseService {
|
|||
ownerId: auth.user.id,
|
||||
libraryId: null,
|
||||
checksum,
|
||||
checksumAlgorithm: ChecksumAlgorithm.sha1File,
|
||||
originalPath: path,
|
||||
deviceAssetId: assetData.deviceAssetId,
|
||||
deviceId: assetData.deviceId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue