This commit is contained in:
NAME
2026-05-23 06:27:07 +00:00
parent 60dd0730f0
commit 83553be5b3
35 changed files with 763 additions and 126 deletions
+4
View File
@@ -13,6 +13,10 @@ export class PgPostService {
});
}
async getById(id: number): Promise<Post | null> {
return this.post({id})
}
async createPost(data: Prisma.PostCreateInput): Promise<Post> {
return this.prisma.post.create({
data,