WIP: feat: store administrator status in database #936

Closed
AMelonInsideLemon wants to merge 1 commits from AMelonInsideLemon:administrator-status into main
Contributor

Closes #907

Closes #907
AMelonInsideLemon added 1 commit 2025-02-09 10:34:41 -08:00
feat: store administrator status in database
All checks were successful
Build / build (20) (pull_request) Successful in 37s
Build / build (22) (pull_request) Successful in 1m2s
Build / build (18) (pull_request) Successful in 1m37s
2725784bc8
Closes 907
Owner

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.

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.
OrdisPrime reviewed 2025-02-09 11:03:58 -08:00
@ -19,3 +19,3 @@
export const createAccount = async (accountData: IDatabaseAccount): Promise<IDatabaseAccountJson> => {
const account = new Account(accountData);
const account = new Account({
Owner

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.

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.
Sainan changed title from feat: store administrator status in database to WIP: feat: store administrator status in database 2025-02-09 14:37:45 -08:00
Sainan closed this pull request 2025-02-24 21:25:37 -08:00
All checks were successful
Build / build (20) (pull_request) Successful in 37s
Build / build (22) (pull_request) Successful in 1m2s
Build / build (18) (pull_request) Successful in 1m37s

Pull request closed

Sign in to join this conversation.
No description provided.