Skip to content

Commit

Permalink
add 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 3efc040 commit 024bb38
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions config/setupDB.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,15 @@ export async function setDefaultConfigs() {
},
};
if (await readConfig('restricted_areas') === false) await createConfig('restricted_areas', areas);

const autoRelease = {
enable: false,
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);
}

0 comments on commit 024bb38

Please sign in to comment.