diff --git a/src/services/repository/post-repository.ts b/src/services/repository/post-repository.ts index caf2e6c..9febbc3 100644 --- a/src/services/repository/post-repository.ts +++ b/src/services/repository/post-repository.ts @@ -9,8 +9,9 @@ FROM posts WHERE id = $id `; const query = db.query(queryString); - const post = query.get({ $id: id }).as(Post); - return post; + const results = query.get({ $id: id }); + + return {} } public async getPostBySlug(slug: string): Post {