From 60600729df532c12028ceb9062d543fb4e2abb8b Mon Sep 17 00:00:00 2001 From: Michcio Date: Sun, 25 Sep 2022 15:46:24 +0200 Subject: [PATCH] backend: Fix import of sanitize-html I'm not sure how it managed to work so far, but the function is the default export, using the namespace like a function should not have worked, maybe something under the hood was correcting it back --- packages/backend/src/server/api/endpoints/users/report-abuse.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/endpoints/users/report-abuse.ts b/packages/backend/src/server/api/endpoints/users/report-abuse.ts index 4ef0f0d2a..eacfe72f4 100644 --- a/packages/backend/src/server/api/endpoints/users/report-abuse.ts +++ b/packages/backend/src/server/api/endpoints/users/report-abuse.ts @@ -1,4 +1,4 @@ -import * as sanitizeHtml from 'sanitize-html'; +import sanitizeHtml from 'sanitize-html'; import config from '@/config/index.js'; import { publishAdminStream } from '@/services/stream.js'; import { AbuseUserReports, Users } from '@/models/index.js';