fix: replace uuids with displaynames rather than shas

This commit is contained in:
Richard Yu
2025-09-03 22:06:12 -07:00
parent bd48649604
commit 9bd3d5cbe6
4 changed files with 87 additions and 53 deletions

View File

@@ -324,8 +324,11 @@ describe('FileNameMappingService', () => {
await service.getMapping('input')
const hash = service.getHashFromHumanName('vacation_photo.png', 'input')
expect(hash).toBe('abc123.png')
const assetId = service.getAssetIdFromHumanName(
'vacation_photo.png',
'input'
)
expect(assetId).toBe('abc123.png')
})
it('should return original name if no mapping exists', async () => {
@@ -337,7 +340,7 @@ describe('FileNameMappingService', () => {
await service.getMapping('input')
const result = service.getHashFromHumanName('unknown.png', 'input')
const result = service.getAssetIdFromHumanName('unknown.png', 'input')
expect(result).toBe('unknown.png')
})
})