Skip to content

Commit

Permalink
Merge branch 'issue-#227'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanchitbajaj02 committed Mar 17, 2024
2 parents a16e2e3 + 045fe06 commit 889e854
Show file tree
Hide file tree
Showing 4 changed files with 260 additions and 257 deletions.
1 change: 1 addition & 0 deletions src/backend/posts.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ const getSinglePost = async (id: string) => {
*/
const getAllUserPosts = async (userId: string) => {
try {

const allPosts = await db.listDocuments(palettegramDB, postsCollection, [
Query.equal("userId", userId),
Query.orderDesc("$createdAt"),
Expand Down
Loading

0 comments on commit 889e854

Please sign in to comment.