mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix(server): sanitization error that crash the server (#721)
This commit is contained in:
parent
572f6d833d
commit
400167f4ef
3 changed files with 3 additions and 3 deletions
|
|
@ -52,7 +52,7 @@ export class ThumbnailGeneratorProcessor {
|
|||
const basePath = APP_UPLOAD_LOCATION;
|
||||
|
||||
const { asset } = job.data;
|
||||
const sanitizedDeviceId = sanitize(asset.deviceId);
|
||||
const sanitizedDeviceId = sanitize(String(asset.deviceId));
|
||||
|
||||
const resizePath = join(basePath, asset.userId, 'thumb', sanitizedDeviceId);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue