fix: Récupérer l'opération active depuis la table operations

- Corrige l'erreur SQL 'Unknown column fk_operation in users'
- L'opération active est récupérée depuis operations.chk_active = 1
- Jointure avec users pour filtrer par entité de l'admin créateur
- Query: SELECT o.id FROM operations o INNER JOIN users u ON u.fk_entite = o.fk_entite WHERE u.id = ? AND o.chk_active = 1
This commit is contained in:
2026-01-26 16:57:08 +01:00
parent c24a3afe6a
commit 0687900564
3040 changed files with 77204 additions and 1578 deletions

0
app/lib/chat/models/message.dart Normal file → Executable file
View File

0
app/lib/chat/models/message.g.dart Normal file → Executable file
View File

0
app/lib/chat/models/room.dart Normal file → Executable file
View File

2
app/lib/chat/models/room.g.dart Normal file → Executable file
View File

@@ -26,7 +26,7 @@ class RoomAdapter extends TypeAdapter<Room> {
unreadCount: fields[6] as int,
recentMessages: (fields[7] as List?)
?.map((dynamic e) => (e as Map).cast<String, dynamic>())
.toList(),
?.toList(),
updatedAt: fields[8] as DateTime?,
createdBy: fields[9] as int?,
isSynced: fields[10] as bool,