Remove duplicate definition of threads.findById

master
Dragory 2018-03-11 22:15:29 +02:00
parent 32260fd22c
commit dc44bdc103
1 changed files with 0 additions and 14 deletions

View File

@ -129,20 +129,6 @@ async function createThreadInDB(data) {
return threadId; 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 * @param {String} channelId
* @returns {Promise<Thread>} * @returns {Promise<Thread>}