Start the repository model
This commit is contained in:
parent
908141aeff
commit
3c4be7f78f
@ -9,8 +9,9 @@ FROM posts
|
|||||||
WHERE id = $id
|
WHERE id = $id
|
||||||
`;
|
`;
|
||||||
const query = db.query(queryString);
|
const query = db.query(queryString);
|
||||||
const post = query.get({ $id: id }).as(Post);
|
const results = query.get({ $id: id });
|
||||||
return post;
|
|
||||||
|
return {}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async getPostBySlug(slug: string): Post {
|
public async getPostBySlug(slug: string): Post {
|
||||||
|
Loading…
Reference in New Issue
Block a user