Start the repository model
This commit is contained in:
parent
908141aeff
commit
3c4be7f78f
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user