tianji/src/server/trpc/routers/serverStatus.ts

13 lines
374 B
TypeScript
Raw Normal View History

2023-11-07 15:13:44 +00:00
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);
}
),
});