feat(don): add goal reset function
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user