hunk.code_window:       if (!req.user) {
           return;
         }
         const sanitizedDeviceId = sanitize(req.body['deviceId']);
         const originalUploadFolder = join(basePath, req.user.id, 'original', sanitizedDeviceId);
         if (!existsSync(originalUploadFolder)) {
           mkdirSync(originalUploadFolder, { recursive: true });
         }
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep keep
hunk.after_edit:       const sanitizedDeviceId = sanitize(String(req.body['deviceId']));
  
hunk.file_path: server/apps/immich/src/config/asset-upload.config.ts
hunk.type: replace
file: import { MigrationInterface, QueryRunner } from 'typeorm';
  
  export class ChangeExifFileSizeInByteToBigInt1661528919411 implements MigrationInterface {
    name = 'ChangeExifFileSizeInByteToBigInt1661528919411';
  
    public async up(queryRunner: QueryRunner): Promise<void> {
      await queryRunner.query(`
        ALTER TABLE exif
        ALTER COLUMN "fileSizeInByte" type bigint using "fileSizeInByte"::bigint;
      `);
    }
  
    public async down(queryRunner: QueryRunner): Promise<void> {
      await queryRunner.query(`
      ALTER TABLE exif
      ALTER COLUMN "fileSizeInByte" type integer using "fileSizeInByte"::integer;
    `);
    }
  }
  