Start the repository model

This commit is contained in:
Dave Smith-Hayes 2024-07-11 22:21:11 -04:00
parent 908141aeff
commit 3c4be7f78f

View File

@ -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 {