feat: checkpoint before disaster strikes

This commit is contained in:
=
2025-06-13 20:22:38 +05:30
parent 5b51ab3216
commit 5311daed64
6 changed files with 610 additions and 56 deletions
@@ -91,7 +91,7 @@ export const pkiTemplatesDALFactory = (db: TDbClient) => {
void query.orderBy(sort.map(([column, order, nulls]) => ({ column: column as string, order, nulls })));
}
const res = await query;
const res = (await query) as Array<Awaited<typeof query>[0] & { count: string }>;
return res.map((el) => ({ ...el, ca: { id: el.caId, name: el.caName } }));
} catch (error) {
throw new DatabaseError({ error, name: "Find one" });
@@ -561,7 +561,7 @@ const formatMultiValueEnv = (val?: string) => {
return `"${val.replaceAll("\n", "\\n")}"`;
};
type TSecretReferenceTraceNode = {
export type TSecretReferenceTraceNode = {
key: string;
value?: string;
environment: string;