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:
renovate[bot] 2024-01-17 18:24:51 +00:00 committed by GitHub
parent a7768cc64d
commit 0350058689
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 649 additions and 746 deletions

1387
server/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -154,7 +154,7 @@ describe('AssetService', () => {
size: 0,
};
const dto = _getCreateAssetDto();
const error = new QueryFailedError('', [], '');
const error = new QueryFailedError('', [], new Error('unique key violation'));
(error as any).constraint = ASSET_CHECKSUM_CONSTRAINT;
assetRepositoryMock.create.mockRejectedValue(error);
@ -172,7 +172,7 @@ describe('AssetService', () => {
it('should handle a live photo', async () => {
const dto = _getCreateAssetDto();
const error = new QueryFailedError('', [], '');
const error = new QueryFailedError('', [], new Error('unique key violation'));
(error as any).constraint = ASSET_CHECKSUM_CONSTRAINT;
assetRepositoryMock.create.mockResolvedValueOnce(assetStub.livePhotoMotionAsset);

View File

@ -105,7 +105,7 @@ WITH
WHERE
"asset"."ownerId" IN ($2)
ORDER BY
1 + ("faces"."embedding" <= > $3) ASC
1 + ("faces"."embedding" <= > $1) ASC
LIMIT
100
)
@ -114,5 +114,5 @@ SELECT
FROM
"cte" "res"
WHERE
res.distance <= $4
res.distance <= $3
COMMIT