diff --git a/packages/nextjs/pages/api/files.api.ts b/packages/nextjs/pages/api/files.api.ts index 5620c341..43ccb6fa 100644 --- a/packages/nextjs/pages/api/files.api.ts +++ b/packages/nextjs/pages/api/files.api.ts @@ -7,7 +7,7 @@ import { Readable } from "stream"; import { FilesDb } from "~~/databases/files.db"; import withErrorHandler from "~~/middlewares/withErrorHandler"; import { FileModel } from "~~/models/file.model"; -import { authentify, getWalletAddressFromToken, testEncryption } from "~~/servers/auth"; +import { authentify, getWalletAddressFromToken } from "~~/servers/auth"; import { getIpfsUrl, ipfsClient, pinata, pushObjectToIpfs } from "~~/servers/ipfs"; import logger from "~~/services/logger.service"; @@ -22,7 +22,6 @@ export const config = { }; const handler = async (req: NextApiRequest, res: NextApiResponse) => { - if (!(await testEncryption(res))) return; if (req.method === "POST") { if (req.query.publish === "true") { // Publish the file to IPFS