diff --git a/src/commands/import.command.ts b/src/commands/import.command.ts index f94c196210..f1d5818cd9 100644 --- a/src/commands/import.command.ts +++ b/src/commands/import.command.ts @@ -37,7 +37,7 @@ export class ImportCommand { } const err = await this.importService.import(importer, contents, null); - if (err == null) { + if (err != null) { return Response.badRequest(err.message); } const res = new MessageResponse('Imported ' + filepath, null);