13 lines
374 B
TypeScript
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);
|
|
}
|
|
),
|
|
});
|