From 3a46f14f52b4d0f0e361dcb2885187eef54029ea Mon Sep 17 00:00:00 2001 From: ShootingStar91 Date: Sat, 31 Aug 2024 13:09:11 +0300 Subject: [PATCH] Fix species write route --- backend/src/services/write/species.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/services/write/species.ts b/backend/src/services/write/species.ts index 3bf77d36..31b40efe 100644 --- a/backend/src/services/write/species.ts +++ b/backend/src/services/write/species.ts @@ -31,7 +31,7 @@ export const writeSpecies = async ( await writeHandler.applyListChanges('now_ls', species.now_ls, ['lid', 'species_id']) await writeHandler.applyListChanges('com_taxa_synonym', species.com_taxa_synonym, ['synonym_id', 'species_id']) - await writeHandler.logUpdatesAndComplete(comment ?? '', references ?? [], authorizer) + await writeHandler.logUpdatesAndComplete(authorizer, comment ?? '', references ?? []) await writeHandler.commit() return species.species_id