new selfhosted version

This commit is contained in:
antonio
2025-11-28 14:11:51 +01:00
parent afda29997d
commit 951860f67e
1046 changed files with 72586 additions and 574750 deletions

View File

@@ -0,0 +1,13 @@
export function getPrettyAggregation(aggregation: any[], indent: number = 0) {
const text = JSON.stringify(aggregation, null, indent);
const result = text.replace(
/"(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z)"/g,
(match, date) => `ISODate("${date}")`
).replace(
/"([a-fA-F0-9]{24})"/g,
(match, objectId) => `ObjectId("${objectId}")`
);
return result;
}