Add new WHERE feature to my funny orm
This commit is contained in:
@@ -15,7 +15,7 @@ const api = sync.require("../../matrix/api")
|
||||
* @param {import("discord-api-types/v10").APIThreadChannel} thread
|
||||
*/
|
||||
async function announceThread(parentRoomID, threadRoomID, thread) {
|
||||
const creatorMxid = select("sim", "mxid", "WHERE user_id = ?").pluck().get(thread.owner_id)
|
||||
const creatorMxid = select("sim", "mxid", {user_id: thread.owner_id}).pluck().get()
|
||||
|
||||
const content = await threadToAnnouncement.threadToAnnouncement(parentRoomID, threadRoomID, creatorMxid, thread, {api})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user