Signup working with new db
This commit is contained in:
@@ -49,11 +49,7 @@ export default class Database {
|
||||
}
|
||||
}
|
||||
|
||||
generateUserID() {
|
||||
let id = this.labels["User"].length + 1;
|
||||
while (this.get.user(`user-${id}`)) {
|
||||
id++;
|
||||
}
|
||||
return `user-${id}`; // O(1) most of the time
|
||||
saveData() {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user