fix(ui): 对齐图表末端与实时概览数据的精度,放开全量历史趋势查询限制
This commit is contained in:
@@ -88,7 +88,7 @@ export async function getSnapshots(params?: {
|
||||
startDate?: string;
|
||||
endDate?: string;
|
||||
}) {
|
||||
const { limit = 365, startDate, endDate } = params || {};
|
||||
const { limit, startDate, endDate } = params || {};
|
||||
|
||||
let query = db
|
||||
.select()
|
||||
@@ -105,7 +105,7 @@ export async function getSnapshots(params?: {
|
||||
);
|
||||
}
|
||||
|
||||
const snapshots = await query.limit(limit);
|
||||
const snapshots = limit ? await query.limit(limit) : await query;
|
||||
|
||||
return snapshots.reverse();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user