Corrected ts and tsx files

This commit is contained in:
Alejandro Criado-Pérez
2023-08-04 02:14:04 +02:00
parent cef5c8e33f
commit b5328eebde
8 changed files with 9 additions and 9 deletions

View File

@ -31,7 +31,7 @@ export function getServerErrorFromUnknown(cause: unknown): HttpError {
return new Error(cause, { cause });
}
// Catch-All if none of the above triggered and something (even more) unexpected happend
// Catch-All if none of the above triggered and something (even more) unexpected happened
return new HttpError({
statusCode: 500,
message: `Unhandled error of type '${typeof cause}'. Please reach out for our customer support.`,

View File

@ -1,7 +1,7 @@
import fs from "fs";
import { PDFDocument, PDFHexString, PDFName, PDFNumber, PDFString } from "pdf-lib";
// Local copy of Node SignPDF because https://github.com/vbuch/node-signpdf/pull/187 was not published in NPM yet. Can be switched to npm packge.
// Local copy of Node SignPDF because https://github.com/vbuch/node-signpdf/pull/187 was not published in NPM yet. Can be switched to npm package.
const signer = require("./node-signpdf/dist/signpdf");
export const addDigitalSignature = async (documentAsBase64: string): Promise<string> => {