mirror of
https://github.com/immich-app/immich.git
synced 2024-11-24 08:52:28 +02:00
fix(deps): update server (#6415)
* fix(deps): update server * chore: fix tests --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
This commit is contained in:
parent
a7768cc64d
commit
0350058689
1387
server/package-lock.json
generated
1387
server/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -154,7 +154,7 @@ describe('AssetService', () => {
|
|||||||
size: 0,
|
size: 0,
|
||||||
};
|
};
|
||||||
const dto = _getCreateAssetDto();
|
const dto = _getCreateAssetDto();
|
||||||
const error = new QueryFailedError('', [], '');
|
const error = new QueryFailedError('', [], new Error('unique key violation'));
|
||||||
(error as any).constraint = ASSET_CHECKSUM_CONSTRAINT;
|
(error as any).constraint = ASSET_CHECKSUM_CONSTRAINT;
|
||||||
|
|
||||||
assetRepositoryMock.create.mockRejectedValue(error);
|
assetRepositoryMock.create.mockRejectedValue(error);
|
||||||
@ -172,7 +172,7 @@ describe('AssetService', () => {
|
|||||||
|
|
||||||
it('should handle a live photo', async () => {
|
it('should handle a live photo', async () => {
|
||||||
const dto = _getCreateAssetDto();
|
const dto = _getCreateAssetDto();
|
||||||
const error = new QueryFailedError('', [], '');
|
const error = new QueryFailedError('', [], new Error('unique key violation'));
|
||||||
(error as any).constraint = ASSET_CHECKSUM_CONSTRAINT;
|
(error as any).constraint = ASSET_CHECKSUM_CONSTRAINT;
|
||||||
|
|
||||||
assetRepositoryMock.create.mockResolvedValueOnce(assetStub.livePhotoMotionAsset);
|
assetRepositoryMock.create.mockResolvedValueOnce(assetStub.livePhotoMotionAsset);
|
||||||
|
@ -105,7 +105,7 @@ WITH
|
|||||||
WHERE
|
WHERE
|
||||||
"asset"."ownerId" IN ($2)
|
"asset"."ownerId" IN ($2)
|
||||||
ORDER BY
|
ORDER BY
|
||||||
1 + ("faces"."embedding" <= > $3) ASC
|
1 + ("faces"."embedding" <= > $1) ASC
|
||||||
LIMIT
|
LIMIT
|
||||||
100
|
100
|
||||||
)
|
)
|
||||||
@ -114,5 +114,5 @@ SELECT
|
|||||||
FROM
|
FROM
|
||||||
"cte" "res"
|
"cte" "res"
|
||||||
WHERE
|
WHERE
|
||||||
res.distance <= $4
|
res.distance <= $3
|
||||||
COMMIT
|
COMMIT
|
||||||
|
Loading…
Reference in New Issue
Block a user