From 6c08cb2d2ab349d9cf974ecf488a08df4f526920 Mon Sep 17 00:00:00 2001 From: Nicholas Wallace Date: Wed, 13 May 2026 15:49:24 -0700 Subject: [PATCH] Replace findOrCreate with findCreateFind to remove transaction requirement --- server/models/Author.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/models/Author.js b/server/models/Author.js index 9708338cd..8ca45b63a 100644 --- a/server/models/Author.js +++ b/server/models/Author.js @@ -188,7 +188,7 @@ class Author extends Model { return { author: null, created: false } } - const [author, created] = await this.findOrCreate({ + const [author, created] = await this.findCreateFind({ where: { searchName, libraryId