mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
Allow user to change admin username.
This commit is contained in:
parent
e31181c676
commit
faf6438852
5 changed files with 21 additions and 14 deletions
|
|
@ -230,7 +230,16 @@ export async function saveEvent(website_id, session_id, url, event_type, event_v
|
|||
}
|
||||
|
||||
export async function getAccounts() {
|
||||
return runQuery(prisma.account.findMany());
|
||||
return runQuery(
|
||||
prisma.account.findMany({
|
||||
orderBy: [
|
||||
{ is_admin: 'desc' },
|
||||
{
|
||||
username: 'asc',
|
||||
},
|
||||
],
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
export async function getAccountById(user_id) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue