Improve invoice verification saving and update user permission handling

Add `saveInvoiceVerificationCache` to storage interfaces, implement it in `DatabaseStorage` and `MemStorage`, adjust user type in `AuthRequest` to `any`, and initialize group/supplier counters in `MemStorage`.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 7c468936-2a88-4686-ac0a-84921a45222d
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/7c468936-2a88-4686-ac0a-84921a45222d/ce6DSX9
This commit is contained in:
michaelschal committed 2025-08-13 15:06:14 +00:00
1 parent 73a090f54f
commit 947896c212
3 files changed
+178 -20

No files matched your search

+1 -5
View File
@@ -7,11 +7,7 @@ import type { Permission, Module } from '@shared/permissions';
// Interface pour les requêtes authentifiées
interface AuthRequest extends Request {
user: {
id: string;
role: string;
claims?: { sub: string };
};
user: any;
}
// Middleware pour vérifier l'accès à un module