new userdb form

This commit is contained in:
lingdocs 2021-08-23 07:40:41 +04:00
parent b673fa6e93
commit 3c70ef12ef
2 changed files with 2 additions and 1 deletions

View File

@ -178,5 +178,5 @@ function stringToHex(str: string) {
} }
export function getWordlistDbName(uid: T.UUID): T.WordlistDbName { export function getWordlistDbName(uid: T.UUID): T.WordlistDbName {
return `wordlist-${stringToHex(uid)}` as T.WordlistDbName; return `user-${stringToHex(uid)}` as T.WordlistDbName;
} }

View File

@ -337,6 +337,7 @@ class App extends Component<RouteComponentProps, State> {
private networkCronJob = new CronJob("* * * * *", () => { private networkCronJob = new CronJob("* * * * *", () => {
// TODO: check for new dictionary (in a seperate cron job - not dependant on the user being signed in)\ // TODO: check for new dictionary (in a seperate cron job - not dependant on the user being signed in)\
console.log("cron job running");
this.handleLoadUser(); this.handleLoadUser();
sendSubmissions(); sendSubmissions();
this.handleDictionaryUpdate(); this.handleDictionaryUpdate();