core: dump config.yaml to database (for #65)

This commit is contained in:
undefined committed 2021-04-10 13:36:14 +08:00
1 parent 3171277252
commit dafa80f6f2
9 files changed
+152 -147

No files matched your search

+6
View File
@@ -297,6 +297,12 @@ export function formatSeconds(_seconds = '0') {
);
}
export function changeErrorType(err: Error, Err: any) {
const e = new Err(err.message);
e.stack = err.stack;
return e;
}
export async function retry(func: Function, ...args: any[]): Promise<any>;
export async function retry(times: number, func: Function, ...args: any[]): Promise<any>;
// eslint-disable-next-line consistent-return