feat: dashboard
This commit is contained in:
@@ -15,6 +15,8 @@ import { handleDeleteStaleJoinRequests } from './commands/handlers/deleteStaleJo
|
||||
import { handleGetUserByUsername } from './queries/handlers/getUserByUsername';
|
||||
import { handleGetUserById } from './queries/handlers/getUserById';
|
||||
import { handleGetAllPublicServers } from './queries/handlers/getAllPublicServers';
|
||||
import { handleGetFeaturedServers } from './queries/handlers/getFeaturedServers';
|
||||
import { handleGetTrendingServers } from './queries/handlers/getTrendingServers';
|
||||
import { handleGetServerById } from './queries/handlers/getServerById';
|
||||
import { handleGetJoinRequestById } from './queries/handlers/getJoinRequestById';
|
||||
import { handleGetPendingRequestsForServer } from './queries/handlers/getPendingRequestsForServer';
|
||||
@@ -46,6 +48,12 @@ export const getUserById = (userId: string) =>
|
||||
export const getAllPublicServers = () =>
|
||||
handleGetAllPublicServers(getDataSource());
|
||||
|
||||
export const getFeaturedServers = (limit?: number) =>
|
||||
handleGetFeaturedServers(getDataSource(), limit);
|
||||
|
||||
export const getTrendingServers = (limit?: number) =>
|
||||
handleGetTrendingServers(getDataSource(), limit);
|
||||
|
||||
export const getServerById = (serverId: string) =>
|
||||
handleGetServerById({ type: QueryType.GetServerById, payload: { serverId } }, getDataSource());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user