From dc44bdc10368cc3f5985b5b61fa751f6ef481818 Mon Sep 17 00:00:00 2001 From: Dragory Date: Sun, 11 Mar 2018 22:15:29 +0200 Subject: [PATCH] Remove duplicate definition of threads.findById --- src/data/threads.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/data/threads.js b/src/data/threads.js index f3b497e..5bab7f6 100644 --- a/src/data/threads.js +++ b/src/data/threads.js @@ -129,20 +129,6 @@ async function createThreadInDB(data) { return threadId; } -/** - * @param {String} id - * @returns {Promise} - */ -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}