From 3c4be7f78f01eaa0e488b14ae969a0ef186bee81 Mon Sep 17 00:00:00 2001 From: Dave Smith-Hayes Date: Thu, 11 Jul 2024 22:21:11 -0400 Subject: [PATCH] Start the repository model --- src/services/repository/post-repository.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 {