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:
0
app/lib/chat/TODO_CHAT.md
Normal file → Executable file
0
app/lib/chat/TODO_CHAT.md
Normal file → Executable file
0
app/lib/chat/chat_config.yaml
Normal file → Executable file
0
app/lib/chat/chat_config.yaml
Normal file → Executable file
0
app/lib/chat/example_usage.dart
Normal file → Executable file
0
app/lib/chat/example_usage.dart
Normal file → Executable file
0
app/lib/chat/models/message.dart
Normal file → Executable file
0
app/lib/chat/models/message.dart
Normal file → Executable file
0
app/lib/chat/models/message.g.dart
Normal file → Executable file
0
app/lib/chat/models/message.g.dart
Normal file → Executable file
0
app/lib/chat/models/room.dart
Normal file → Executable file
0
app/lib/chat/models/room.dart
Normal file → Executable file
2
app/lib/chat/models/room.g.dart
Normal file → Executable file
2
app/lib/chat/models/room.g.dart
Normal file → Executable 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,
|
||||
|
||||
0
app/lib/chat/pages/rooms_page.dart
Normal file → Executable file
0
app/lib/chat/pages/rooms_page.dart
Normal file → Executable file
0
app/lib/chat/pages/rooms_page_embedded.dart
Normal file → Executable file
0
app/lib/chat/pages/rooms_page_embedded.dart
Normal file → Executable file
0
app/lib/chat/services/chat_config_loader.dart
Normal file → Executable file
0
app/lib/chat/services/chat_config_loader.dart
Normal file → Executable file
0
app/lib/chat/services/chat_info_service.dart
Normal file → Executable file
0
app/lib/chat/services/chat_info_service.dart
Normal file → Executable file
0
app/lib/chat/services/chat_service.dart
Normal file → Executable file
0
app/lib/chat/services/chat_service.dart
Normal file → Executable file
0
app/lib/chat/widgets/recipient_selector.dart
Normal file → Executable file
0
app/lib/chat/widgets/recipient_selector.dart
Normal file → Executable file
Reference in New Issue
Block a user