add original message in thread
This commit is contained in:
1 parent
0094783a4e
commit
3bffd88108
5 files changed
+106
-93
No files matched your search
@@ -40,6 +40,12 @@ export async function getMessageUid(messageId: number): Promise<{uid: number}[]>
|
||||
return await execQueryAsync(query, values);
|
||||
}
|
||||
|
||||
export async function getMessageIdOnID(messageID: string): Promise<{message_id: number}[]> {
|
||||
const query = `SELECT message_id FROM message WHERE messageID = ?`;
|
||||
const values = [messageID];
|
||||
return await execQueryAsync(query, values);
|
||||
}
|
||||
|
||||
export async function findRoomByOwner(ownerId: number): Promise<{ room_id: number }[]> {
|
||||
const query = `SELECT room_id FROM app_room WHERE owner_id = ?`;
|
||||
const values = [ownerId];
|
||||
|
||||
Reference in new issue
Block a user