From 36d1f4473fc0f380878dda8f443622163c0f1c2c Mon Sep 17 00:00:00 2001 From: Kevin Midboe Date: Fri, 14 Apr 2017 17:04:04 +0200 Subject: [PATCH] Removed unused endpoint. --- src/strayEpisode/strayEpisodes.js | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 src/strayEpisode/strayEpisodes.js diff --git a/src/strayEpisode/strayEpisodes.js b/src/strayEpisode/strayEpisodes.js deleted file mode 100644 index 68894a7..0000000 --- a/src/strayEpisode/strayEpisodes.js +++ /dev/null @@ -1,28 +0,0 @@ -/* -* @Author: KevinMidboe -* @Date: 2017-04-12 16:57:55 -* @Last Modified by: KevinMidboe -* @Last Modified time: 2017-04-12 17:05:28 -*/ - -const assert = require('assert'); -const establishedDatabase = require('src/database/database'); - -class StayEpisodes { - - constructor(database) { - this.databse = database || establishedDatabase; - this.queries = { - 'read': 'SELECT name, season, episode FROM stray_eps WHERE id = ?', - 'readEpisode': 'SELECT * FROM stray_eps WHERE id = ?', - 'updateEpisode': 'UPDATE stray_eps SET name = ?, season = ?, episode = ?, video_files = ?, \ - subtitles = ?, trash = ?, verified = ? WHERE id = ?', - }; - } - - read(episodeId) { - return this.database.get(this.queries.read, episodeId).then((row) => { - assert.notEqual(row, undefined) - }) - } -} \ No newline at end of file