|
|
@ -989,19 +989,13 @@ export class ActivitiesService { |
|
|
delete data.symbol; |
|
|
delete data.symbol; |
|
|
delete data.tags; |
|
|
delete data.tags; |
|
|
|
|
|
|
|
|
// Remove existing tags
|
|
|
|
|
|
await this.prismaService.order.update({ |
|
|
|
|
|
where, |
|
|
|
|
|
data: { tags: { set: [] } } |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
const activity = await this.prismaService.order.update({ |
|
|
const activity = await this.prismaService.order.update({ |
|
|
where, |
|
|
where, |
|
|
data: { |
|
|
data: { |
|
|
...data, |
|
|
...data, |
|
|
isDraft, |
|
|
isDraft, |
|
|
tags: { |
|
|
tags: { |
|
|
connect: tags |
|
|
set: tags |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|