修复 ComWeChat 文件类型检测错误

This commit is contained in:
🌌 2023-07-07 10:21:01 +08:00
parent a768cc6427
commit d15d915bf6
2 changed files with 2 additions and 1 deletions

View File

@ -31,7 +31,7 @@
"node-schedule": "^2.1.1", "node-schedule": "^2.1.1",
"node-xlsx": "^0.23.0", "node-xlsx": "^0.23.0",
"pm2": "^5.3.0", "pm2": "^5.3.0",
"puppeteer": "^20.7.4", "puppeteer": "^20.8.0",
"redis": "^4.6.7", "redis": "^4.6.7",
"sequelize": "^6.32.1", "sequelize": "^6.32.1",
"sqlite3": "^5.1.6", "sqlite3": "^5.1.6",

View File

@ -2,6 +2,7 @@ import { WebSocketServer } from "ws"
import { randomUUID } from "crypto" import { randomUUID } from "crypto"
import path from "node:path" import path from "node:path"
import fs from "node:fs" import fs from "node:fs"
import { fileTypeFromBuffer } from "file-type"
Bot.adapter.push(new class ComWeChatAdapter { Bot.adapter.push(new class ComWeChatAdapter {
constructor() { constructor() {