More linter

This commit is contained in:
Fang-Pen Lin
2025-11-07 09:21:09 -08:00
parent 694a13fce2
commit cb2810b263
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -44,7 +44,7 @@ export const registerPkiAcmeRouter = async (server: FastifyZodProvider) => {
req: R;
schema?: TSchema;
}): Promise<TAuthenciatedJwsPayload<T>> => {
return await server.services.pkiAcme.validateExistingAccountJwsPayload({
return server.services.pkiAcme.validateExistingAccountJwsPayload({
url: new URL(req.url, `${req.protocol}://${req.hostname}`),
profileId: (req.params as { profileId: string }).profileId,
rawJwsPayload: req.body as TRawJwsPayload,
@@ -71,7 +71,7 @@ export const registerPkiAcmeRouter = async (server: FastifyZodProvider) => {
if (!strBody) {
done(null, undefined);
}
const json = JSON.parse(strBody as string);
const json = JSON.parse(strBody);
done(null, json);
} catch (err) {
const error = err as Error;