Replace findOrCreate with findCreateFind to remove transaction requirement

This commit is contained in:
Nicholas Wallace 2026-05-13 15:49:24 -07:00
parent 22d107fb4e
commit 6c08cb2d2a

View file

@ -188,7 +188,7 @@ class Author extends Model {
return { author: null, created: false } return { author: null, created: false }
} }
const [author, created] = await this.findOrCreate({ const [author, created] = await this.findCreateFind({
where: { where: {
searchName, searchName,
libraryId libraryId