From 7bf5921298bca7ac67180cce1baa125ef6aac258 Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Fri, 29 Aug 2025 23:43:24 +0800 Subject: [PATCH] chore: MAKE LINIT HAPPT --- src/data/FileManager.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/data/FileManager.ts b/src/data/FileManager.ts index f80a1a5..4973bef 100644 --- a/src/data/FileManager.ts +++ b/src/data/FileManager.ts @@ -3,6 +3,7 @@ import { Buffer } from "node:buffer" import path from 'node:path' import crypto from 'node:crypto' import fs_sync from 'node:fs' +import chalk from "chalk" import { fileTypeFromBuffer } from 'file-type' import config from "../config.ts" @@ -114,7 +115,7 @@ export default class FileManager { fileName, hash, mime, - chatId, + chatId || null, Date.now(), -1 ).lastInsertRowid