Skip to content

Commit

Permalink
fix(imports): Correctly convert entity type name to snake case
Browse files Browse the repository at this point in the history
Approving an Edition Group import failed previously:
> error: select "data_id" from "bookbrainz"."editiongroup_import_header" where "import_id" = $1 - relation "bookbrainz.editiongroup_import_header" does not exist
  • Loading branch information
kellnerd committed Jul 22, 2024
1 parent 1d129f9 commit 5a41a9f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/func/imports/delete-import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ export async function deleteImport(
// Get the type of the import
const [typeObj] = await transacting.select('type')
.from('bookbrainz.import').where('id', importId);
const {type} = typeObj;
const importType = type.toLowerCase();
const {type: importType} = typeObj;

// Get the dataId of the import
const [dataIdObj] =
Expand Down

0 comments on commit 5a41a9f

Please sign in to comment.