Skip to content

Commit

Permalink
chore: Removed unnecessary type casting
Browse files Browse the repository at this point in the history
  • Loading branch information
4xii authored and shixinzhu committed Nov 3, 2023
1 parent f88f68f commit 5bc6a8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/room-server/src/automation/actions/sms/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ interface IMailMessageResponse {
}

const jsdomWindow = new JSDOM('').window;
const purify = DOMPurify(jsdomWindow as any);
const purify = DOMPurify(jsdomWindow);

export async function sendMail(request: IMailMessageRequest): Promise<IActionResponse<IMailMessageResponse>> {
const { mailServer, server, port, account, password, to, subject, message, template } = request;
Expand Down

0 comments on commit 5bc6a8e

Please sign in to comment.