feat(don): add goal reset function
Build and Push Image / build-backend (push) Successful in 6m23s
Build and Push Image / build-frontend (push) Successful in 3m36s
Build and Push Image / push (push) Successful in 1m38s

This commit is contained in:
2026-06-16 06:52:07 +07:00 Unverified
parent 414f407d08
commit e483360b5b
6 changed files with 42 additions and 6 deletions
+1
View File
@@ -76,6 +76,7 @@ export const settings = pgTable("settings", {
id: boolean().primaryKey().default(true),
enka: boolean().notNull().default(false), // Turn this off when Enka is on maintenance
donateGoal: numeric({ mode: "number" }),
donateGoalStarting: timestamp(),
});
//#endregion
+4
View File
@@ -68,3 +68,7 @@ export function parseSearchString(
if (Array.isArray(param)) return parseSearchString(param[0], def);
return param ?? def;
}
export function pausePass<R>(time: number): (res: R) => Promise<R> {
return (res) => new Promise((r) => setTimeout(() => r(res), time));
}