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: //
  // AUTO-GENERATED FILE, DO NOT MODIFY!
  //
  // @dart=2.12
  
  // ignore_for_file: unused_element, unused_import
  // ignore_for_file: always_put_required_named_parameters_first
  // ignore_for_file: constant_identifier_names
  // ignore_for_file: lines_longer_than_80_chars
  
  import 'package:openapi/api.dart';
  import 'package:test/test.dart';
  
  
  /// tests for ServerInfoApi
  void main() {
    // final instance = ServerInfoApi();
  
    group('tests for ServerInfoApi', () {
      //Future<ServerInfoResponseDto> getServerInfo() async
      test('test getServerInfo', () async {
        // TODO
      });
  
      //Future<ServerVersionReponseDto> getServerVersion() async
      test('test getServerVersion', () async {
        // TODO
      });
  
      //Future<ServerPingResponse> pingServer() async
      test('test pingServer', () async {
        // TODO
      });
  
    });
  }
  