mirror of
https://github.com/immich-app/immich.git
synced 2026-03-27 12:20:52 +03:00
feat: asset copy (#23172)
This commit is contained in:
@@ -162,4 +162,9 @@ export class StackRepository {
|
||||
.where('asset.id', '=', assetId)
|
||||
.executeTakeFirst();
|
||||
}
|
||||
|
||||
@GenerateSql({ params: [{ sourceId: DummyValue.UUID, targetId: DummyValue.UUID }] })
|
||||
merge({ sourceId, targetId }: { sourceId: string; targetId: string }) {
|
||||
return this.db.updateTable('asset').set({ stackId: targetId }).where('asset.stackId', '=', sourceId).execute();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user