mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-07 01:41:35 +00:00
Replace findOrCreate with findCreateFind to remove transaction requirement
This commit is contained in:
parent
22d107fb4e
commit
6c08cb2d2a
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue