Remove duplicate definition of threads.findById
parent
32260fd22c
commit
dc44bdc103
|
@ -129,20 +129,6 @@ async function createThreadInDB(data) {
|
|||
return threadId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {String} id
|
||||
* @returns {Promise<Thread>}
|
||||
*/
|
||||
async function findById(id) {
|
||||
const row = await knex('threads')
|
||||
.where('id', id)
|
||||
.first();
|
||||
|
||||
if (! row) return null;
|
||||
|
||||
return new Thread(row);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {String} channelId
|
||||
* @returns {Promise<Thread>}
|
||||
|
|
Loading…
Reference in New Issue