Moving the arttags table to tags table part 1
This commit is contained in:
@ -47,7 +47,7 @@ export async function updateArtwork(
|
||||
const tagsRelation =
|
||||
tagIds || tagsToCreate.length
|
||||
? {
|
||||
tags: {
|
||||
tagsV2: {
|
||||
set: [], // replace entire relation
|
||||
connect: (tagIds ?? []).map((tagId) => ({ id: tagId })),
|
||||
connectOrCreate: tagsToCreate.map((tName) => ({
|
||||
@ -94,4 +94,4 @@ export async function updateArtwork(
|
||||
});
|
||||
|
||||
return updatedArtwork;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user