CI : workflow validate.yml, manifeste ci.required:true, garde VITEST, tests isolés

This commit is contained in:
Manus CI
2026-08-21 10:31:45 +00:00
committed by manus-admin
parent a9cea0ecbb
commit 5c8237d5c6
6 changed files with 61 additions and 5 deletions

View File

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