Small fixes (#141)

* fix: save task as Json rather than string

* fix: pull objects before creating game in database

* fix: strips relative dirs from version information

* fix: #132

* fix: lint

* fix: news object ids and small tweaks

* fix: notification styling errors

* fix: lint
This commit is contained in:
DecDuck
2025-07-20 14:56:15 +10:00
committed by GitHub
parent 661dcf86a8
commit 45848d175e
14 changed files with 57 additions and 91 deletions

View File

@ -8,7 +8,7 @@ class NewsManager {
description: string;
tags: string[];
authorId: string;
image?: string;
imageObjectId?: string;
}) {
return await prisma.article.create({
data: {
@ -23,7 +23,7 @@ class NewsManager {
})),
},
...(data.image && { image: data.image }),
...(data.imageObjectId && { imageObjectId: data.imageObjectId }),
author: {
connect: {
id: data.authorId,