mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
fix(api): always return the page total when listing reports (#2534)
This commit is contained in:
1 parent
d2438b2fdd
commit
8f4fa82a9e
4 files changed
+22
-28
No files matched your search
@@ -1444,9 +1444,6 @@ export const ReportAdminResponseSchema = z.object({
|
||||
message_context: z.array(ReportMessageContextSchema).optional(),
|
||||
message_responses: z.array(MessageResponseSchema).optional(),
|
||||
});
|
||||
const ListReportsResponse = z.object({
|
||||
reports: z.array(ReportAdminResponseSchema),
|
||||
});
|
||||
export const ResolveReportResponse = z.object({
|
||||
report_id: SnowflakeStringType,
|
||||
status: ReportStatusSchema,
|
||||
@@ -1459,7 +1456,7 @@ const SearchReportsResponse = z.object({
|
||||
offset: z.number(),
|
||||
limit: z.number(),
|
||||
});
|
||||
export const AdminReportListResponse = z.union([SearchReportsResponse, ListReportsResponse]);
|
||||
export const AdminReportListResponse = SearchReportsResponse;
|
||||
const LimitKeyMetadataSchema = z.object({
|
||||
key: z.string(),
|
||||
label: z.string(),
|
||||
|
||||
Reference in new issue
Block a user