backend: Fix import of sanitize-html
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/push/lint-client Pipeline was successful
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/test Pipeline was successful

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
This commit is contained in:
Michcio 2022-09-25 15:46:24 +02:00 committed by Johann150
parent 02079593d5
commit 60600729df
Signed by: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -1,4 +1,4 @@
import * as sanitizeHtml from 'sanitize-html'; import sanitizeHtml from 'sanitize-html';
import config from '@/config/index.js'; import config from '@/config/index.js';
import { publishAdminStream } from '@/services/stream.js'; import { publishAdminStream } from '@/services/stream.js';
import { AbuseUserReports, Users } from '@/models/index.js'; import { AbuseUserReports, Users } from '@/models/index.js';