Release 202506011511

This commit is contained in:
pluja
2025-06-01 15:11:37 +00:00
parent e17bc8a521
commit 490433b002
6 changed files with 60 additions and 15 deletions

View File

@@ -157,12 +157,6 @@ export const adminServiceActions = {
})
}
const imageUrl = input.removeImage
? null
: input.imageFile
? await saveFileLocally(input.imageFile, input.imageFile.name)
: undefined
const existingService = await prisma.service.findUnique({
where: { id: input.id },
select: {
@@ -201,6 +195,12 @@ export const adminServiceActions = {
const attributesToAdd = input.attributes.filter((aId) => !existingAttributeIds.includes(aId))
const attributesToRemove = existingAttributeIds.filter((aId) => !input.attributes.includes(aId))
const imageUrl = input.removeImage
? null
: input.imageFile
? await saveFileLocally(input.imageFile, input.imageFile.name)
: undefined
const {
web: serviceUrls,
onion: onionUrls,