Add non-custom currencies per group

This commit is contained in:
Steven Sengchanh
2025-04-19 00:54:15 +02:00
parent a11efc79c1
commit af4bfe3780
26 changed files with 4648 additions and 62 deletions

View File

@@ -19,6 +19,7 @@ export async function createGroup(groupFormValues: GroupFormValues) {
name: groupFormValues.name,
information: groupFormValues.information,
currency: groupFormValues.currency,
currencyCode: groupFormValues.currencyCode,
participants: {
createMany: {
data: groupFormValues.participants.map(({ name }) => ({
@@ -293,6 +294,7 @@ export async function updateGroup(
name: groupFormValues.name,
information: groupFormValues.information,
currency: groupFormValues.currency,
currencyCode: groupFormValues.currencyCode,
participants: {
deleteMany: existingGroup.participants.filter(
(p) => !groupFormValues.participants.some((p2) => p2.id === p.id),