From 830dc1bc43b92ec3146a60e3b5c5d6da3540ee1f Mon Sep 17 00:00:00 2001 From: Jacob Gunther Date: Sun, 15 Apr 2018 23:16:39 -0500 Subject: [PATCH] Use uploads table --- lib/document_stores/rethinkdb.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/document_stores/rethinkdb.js b/lib/document_stores/rethinkdb.js index 431c2ab..04c5b6f 100644 --- a/lib/document_stores/rethinkdb.js +++ b/lib/document_stores/rethinkdb.js @@ -15,7 +15,7 @@ class RethinkDBStore { } set(key, data, callback) { - this.client.table('pastes').insert({ id: RethinkDBStore.md5(key), data: data }).run((error) => { + this.client.table('uploads').insert({ id: RethinkDBStore.md5(key), data: data }).run((error) => { if (error) { callback(false); winston.error('failed to insert to table', error); @@ -26,7 +26,7 @@ class RethinkDBStore { } get(key, callback) { - this.client.table('pastes').get(RethinkDBStore.md5(key)).run((error, result) => { + this.client.table('uploads').get(RethinkDBStore.md5(key)).run((error, result) => { if (error || !result) { callback(false); winston.error('failed to insert to table', error);