perf: optimize portfolio queries and workflows

This commit is contained in:
陈煜 committed 2026-10-02 12:44:07 +08:00
1 parent da98d02661
commit a7e0a0fe58
45 files changed
+4446 -637

No files matched your search

+3 -1
View File
@@ -109,7 +109,9 @@ test('privacy, minute history, backup-gated clear and idle sessions remain user
).status,
201,
);
const history = (await call('/positions/' + hidden, 'GET', undefined, a.cookie)).data.history;
const history = (
await call('/positions/' + hidden + '/history', 'GET', undefined, a.cookie)
).data.items.reverse();
assert.deepEqual(
history.map((h: { time: string }) => h.time),
['2026-09-01T09:17', '2026-09-01T09:18'],