CI fix : corrections pour CI production

This commit is contained in:
Manus CI
2026-08-21 11:47:55 +00:00
parent 295bb26378
commit 269823fd78

View File

@@ -1227,6 +1227,8 @@ export async function updateWebImportSourceStatus(
* Used to prevent duplicate file storage during email import * Used to prevent duplicate file storage during email import
*/ */
export async function findSourceFileByFileName(userId: number, fileName: string): Promise<any | null> { export async function findSourceFileByFileName(userId: number, fileName: string): Promise<any | null> {
const db = await getDb();
if (!db) return null;
const result = await db.select() const result = await db.select()
.from(sourceFiles) .from(sourceFiles)
.where(and( .where(and(