forked from hexbear-collective/hexbear
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
543 B
12 lines
543 B
import { getUserView, UserView } from './models/user.model';
|
|
|
|
export const getSiteAdmins = (): Promise<UserView[]> => { return getUserView({ admin: true }, true); };
|
|
|
|
export const getSiteMods = (): Promise<UserView[]> => { return getUserView({ sitemod: true }, true); };
|
|
|
|
export const getBanned = (): Promise<UserView[]> => { return getUserView({ banned: true }, true); };
|
|
|
|
export const getUserSecure = async (userId: UserView['id']): Promise<UserView> => {
|
|
const userList = await getUserView({ id: userId }, true);
|
|
return userList[0];
|
|
};
|