mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 22:27:16 +01:00
use uuid
This commit is contained in:
parent
246e4e5f4f
commit
17041efaae
73 changed files with 491 additions and 874 deletions
18
queries/admin/user/getUsers.js
Normal file
18
queries/admin/user/getUsers.js
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import prisma from 'lib/prisma';
|
||||
|
||||
export async function getUsers() {
|
||||
return prisma.client.user.findMany({
|
||||
orderBy: [
|
||||
{ isAdmin: 'desc' },
|
||||
{
|
||||
username: 'asc',
|
||||
},
|
||||
],
|
||||
select: {
|
||||
id: true,
|
||||
username: true,
|
||||
isAdmin: true,
|
||||
createdAt: true,
|
||||
},
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue