tianji/src/server/trpc/routers/serverStatus.ts
2023-11-07 23:13:44 +08:00

13 lines
374 B
TypeScript

import { router, workspaceOwnerProcedure } from '../trpc';
import { clearOfflineServerStatus } from '../../model/serverStatus';
export const serverStatusRouter = router({
clearOfflineServerStatus: workspaceOwnerProcedure.mutation(
async ({ input }) => {
const workspaceId = input.workspaceId;
return clearOfflineServerStatus(workspaceId);
}
),
});