Skip to content

Commit

Permalink
change auto release grade config schema
Browse files Browse the repository at this point in the history
  • Loading branch information
birdpump committed Aug 13, 2024
1 parent 024bb38 commit 573f919
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions config/setupDB.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,18 @@ export async function setDefaultConfigs() {
};
if (await readConfig('restricted_areas') === false) await createConfig('restricted_areas', areas);

const autoRelease = {
enable: false,
const autoReleaseDates = {
preRegister: new Date(),
grade12: new Date(),
grade11: new Date(),
grade10: new Date(),
grade9: new Date()

};
if (await readConfig('auto_release') === false) await createConfig('auto_release', autoRelease);
if (await readConfig('auto_release_dates') === false) await createConfig('auto_release_dates', autoReleaseDates);

const enableAutoRelease = {
enabled: false,
};
if (await readConfig('enable_auto_release') === false) await createConfig('enable_auto_release', enableAutoRelease);
}

0 comments on commit 573f919

Please sign in to comment.