Skip to content
This repository was archived by the owner on Mar 19, 2026. It is now read-only.

Commit 2bec010

Browse files
committed
try to fix unqiue constraints
1 parent fe61b9b commit 2bec010

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/helper/author.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export class AuthorHelper {
131131

132132
return await retryOnUniqueViolation(async () => {
133133
const serializedAuthor = author.serialize()
134-
const { asin, region, name, ...rest } = serializedAuthor
134+
const { id, asin, region, name, ...rest } = serializedAuthor
135135

136136
return await Author.updateOrCreate(
137137
{ asin, region, name },

0 commit comments

Comments
 (0)