-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/yusupovbg/FalseNote
- Loading branch information
Showing
5 changed files
with
123 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { getFeed } from "@/lib/prisma/feed"; | ||
|
||
export const fetchFeed = async ({ page = 0, tag }: { page?: number, tag?: string | undefined }) => { | ||
const result = await getFeed({ page, tag }); | ||
|
||
export const fetchFeed = async ({ page = 0, tab }: { page?: number, tab?: string | undefined }) => { | ||
const result = await getFeed({ page, tab }); | ||
console.log(result, 'result') | ||
return result?.feed; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
import { getForYou } from "@/lib/prisma/feed"; | ||
|
||
export const fetchForYou = async ({ page = 0 }: { page?: number }) => { | ||
// const result = await getForYou({ page, tag }); | ||
const result = await getForYou({ page }); | ||
|
||
// return result?.feed; | ||
} | ||
return result?.feed; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters