fix: graphql query (#400)

This commit is contained in:
Songkeys
2023-04-21 11:44:56 +01:00
committed by GitHub
parent 9d680e4738
commit f2643be216
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -177,8 +177,8 @@ export async function getFeed({
notes(
where: {
${time ? `createdAt: { gt: "${time}" },` : ``}
stat: { is: { viewDetailCount: { gt: 0 } } },
metadata: { is: { content: { path: "sources", array_contains: "xlog" }, AND: { content: { path: "tags", array_contains: "post" } } } }
stat: { viewDetailCount: { gt: 0 } },
metadata: { content: { path: "sources", array_contains: "xlog" }, AND: { content: { path: "tags", array_contains: "post" } } }
},
orderBy: { stat: { viewDetailCount: desc } },
take: 50,
+1 -1
View File
@@ -109,7 +109,7 @@ export const getSites = async (input: number[]) => {
content
}
}
notes( where: { characterId: { in: $identities }, createdAt: { gt: "${oneMonthAgo}" }, metadata: { is: { content: { path: "sources", array_contains: "xlog" } } } }, orderBy: [{ updatedAt: desc }] ) {
notes( where: { characterId: { in: $identities }, createdAt: { gt: "${oneMonthAgo}" }, metadata: { content: { path: "sources", array_contains: "xlog" } } }, orderBy: [{ updatedAt: desc }] ) {
characterId
createdAt
}