load messages

This commit is contained in:
Peter Maquiran
2024-08-15 10:26:20 +01:00
parent ea4ca5c34c
commit 9697290bb7
11 changed files with 102 additions and 73 deletions
@@ -14,10 +14,12 @@ export class SyncAllRoomMessagesService {
) { }
async execute() {
await this.RoomRepositoryService.list()
const allRooms: RoomTable[] = await this.RoomRepositoryService.getRoomList()
if(allRooms) {
console.log('allRooms', allRooms)
for(const room of allRooms) {
this.MessageRepositoryService.listAllMessagesByRoomId(room.id)
}