修复文件上传可以传文档bug
This commit is contained in:
+10
-5
@@ -123,7 +123,8 @@ export async function getHomeData(): Promise<HomeStatistics> {
|
||||
select: 'count',
|
||||
filter: {
|
||||
or: `(audit_status.eq.0,audit_status.eq.2,audit_status.is.null)`,
|
||||
created_at: `gte.${startOfToday}`
|
||||
created_at: `gte.${startOfToday}`,
|
||||
is_test_document: `eq.false`
|
||||
}
|
||||
};
|
||||
const todayPendingCount = await handleApiResponse<{count: number}[]>(
|
||||
@@ -138,7 +139,8 @@ export async function getHomeData(): Promise<HomeStatistics> {
|
||||
select: 'count',
|
||||
filter: {
|
||||
and: `(audit_status.neq.0,audit_status.neq.2)`,
|
||||
created_at: `gte.${startOfThisMonth}`
|
||||
created_at: `gte.${startOfThisMonth}`,
|
||||
is_test_document: `eq.false`
|
||||
}
|
||||
};
|
||||
const thisMonthReviewedCount = await handleApiResponse<{count: number}[]>(
|
||||
@@ -154,7 +156,8 @@ export async function getHomeData(): Promise<HomeStatistics> {
|
||||
select: 'count',
|
||||
filter: {
|
||||
or: `(audit_status.eq.1,audit_status.eq.-1)`,
|
||||
and: `(created_at.gte.${startOfLastMonth},created_at.lte.${endOfLastMonth})`
|
||||
and: `(created_at.gte.${startOfLastMonth},created_at.lte.${endOfLastMonth})`,
|
||||
is_test_document: `eq.false`
|
||||
}
|
||||
};
|
||||
const lastMonthReviewedCount = await handleApiResponse<{count: number}[]>(
|
||||
@@ -180,7 +183,8 @@ export async function getHomeData(): Promise<HomeStatistics> {
|
||||
select: 'count',
|
||||
filter: {
|
||||
audit_status: `eq.1`,
|
||||
created_at: `gte.${startOfThisMonth}`
|
||||
created_at: `gte.${startOfThisMonth}`,
|
||||
is_test_document: `eq.false`
|
||||
}
|
||||
};
|
||||
const thisMonthTotalCount = await handleApiResponse<{count: number}[]>(
|
||||
@@ -201,7 +205,8 @@ export async function getHomeData(): Promise<HomeStatistics> {
|
||||
select: 'count',
|
||||
filter: {
|
||||
audit_status: `eq.1`,
|
||||
and: `(created_at.gte.${startOfLastMonth},created_at.lte.${endOfLastMonth})`
|
||||
and: `(created_at.gte.${startOfLastMonth},created_at.lte.${endOfLastMonth})`,
|
||||
is_test_document: `eq.false`
|
||||
}
|
||||
};
|
||||
const lastMonthTotalCount = await handleApiResponse<{count: number}[]>(
|
||||
|
||||
Reference in New Issue
Block a user