mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-16 09:41:13 +10:00
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:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user