mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-04 03:27:09 -05: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,
 | 
			
		||||
      };
 | 
			
		||||
      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);
 | 
			
		||||
 | 
			
		||||
@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user