fix: graphql query (#400)
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user