should update flags
This commit is contained in:
@@ -22,6 +22,12 @@ export async function getFlagId(flag: string): Promise<number> {
|
||||
return await execQueryAsyncWithId(query, values);
|
||||
}
|
||||
|
||||
export async function getMessageIdOnUid(uid: number): Promise<{message_id: number}[]> {
|
||||
const query = `SELECT message_id FROM mailbox_message WHERE uid = ?`;
|
||||
const values = [uid];
|
||||
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