WIP: feat: store administrator status in database #936
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "AMelonInsideLemon:administrator-status"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #907
Well, the semantic you're introducing here is only "implicitly give administrator status to the first account created", which is fine, but without further work, it's a bit too implicit for my liking.
@ -19,3 +19,3 @@
export const createAccount = async (accountData: IDatabaseAccount): Promise<IDatabaseAccountJson> => {
const account = new Account(accountData);
const account = new Account({
provide an optional parameter, isAdministrator: false,
use that instead of querying the database instead.
For the reasons that sainan mentioned, plus avoiding unnecessary performance overhead by querying.
feat: store administrator status in databaseto WIP: feat: store administrator status in databasePull request closed