mirror of
https://github.com/Discreetly/server.git
synced 2026-04-17 03:00:55 -04:00
return message as MessageI
This commit is contained in:
@@ -73,7 +73,7 @@ export async function findRoomsByIdentity(identity: string): Promise<string[]> {
|
||||
}
|
||||
gateway.rooms.forEach((room) => {
|
||||
r.push(room.roomId);
|
||||
})
|
||||
});
|
||||
return r;
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
@@ -98,7 +98,7 @@ export async function findGatewayByIdentity(identity: string): Promise<GateWayId
|
||||
where: {
|
||||
semaphoreIdentity: identity
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -143,7 +143,7 @@ export async function findRoomWithMessageId(
|
||||
return null;
|
||||
}
|
||||
if (room.epochs[0]) {
|
||||
return room.epochs[0].messages[0];
|
||||
return room.epochs[0].messages[0] as MessageI;
|
||||
} else {
|
||||
console.debug('Epoch not found');
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user