mirror of
https://github.com/documenso/documenso.git
synced 2026-07-11 05:25:08 +10:00
1b0df2d082
Changes: - Adds integration for the license server. - Prevent adding flags that the instance is not allowed to add
18 lines
502 B
TypeScript
18 lines
502 B
TypeScript
import { LicenseClient } from '@documenso/lib/server-only/license/license-client';
|
|
|
|
import { adminProcedure } from '../trpc';
|
|
import { ZResyncLicenseRequestSchema, ZResyncLicenseResponseSchema } from './resync-license.types';
|
|
|
|
export const resyncLicenseRoute = adminProcedure
|
|
.input(ZResyncLicenseRequestSchema)
|
|
.output(ZResyncLicenseResponseSchema)
|
|
.mutation(async () => {
|
|
const client = LicenseClient.getInstance();
|
|
|
|
if (!client) {
|
|
return;
|
|
}
|
|
|
|
await client.resync();
|
|
});
|