You've already forked immich
mirror of
https://github.com/immich-app/immich.git
synced 2025-08-08 23:07:06 +02:00
feat: API operation replaceAsset, POST /api/asset/:id/file (#9684)
* impl and unit tests for replaceAsset * Remove it.only * Typo in generated spec +regen * Remove unused dtos * Dto removal fallout/bugfix * fix - missed a line * sql:generate * Review comments * Unused imports * chore: clean up --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
This commit is contained in:
15
server/test/fixtures/file.stub.ts
vendored
15
server/test/fixtures/file.stub.ts
vendored
@ -13,4 +13,19 @@ export const fileStub = {
|
||||
originalName: 'asset_1.mp4',
|
||||
size: 69,
|
||||
}),
|
||||
photo: Object.freeze({
|
||||
uuid: 'photo',
|
||||
originalPath: 'fake_path/photo1.jpeg',
|
||||
mimeType: 'image/jpeg',
|
||||
checksum: Buffer.from('photo file hash', 'utf8'),
|
||||
originalName: 'photo1.jpeg',
|
||||
size: 24,
|
||||
}),
|
||||
photoSidecar: Object.freeze({
|
||||
uuid: 'photo-sidecar',
|
||||
originalPath: 'fake_path/photo1.jpeg.xmp',
|
||||
originalName: 'photo1.jpeg.xmp',
|
||||
checksum: Buffer.from('photo-sidecar file hash', 'utf8'),
|
||||
size: 96,
|
||||
}),
|
||||
};
|
||||
|
Reference in New Issue
Block a user