Update
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user