Commit 830dc1bc authored by Jacob Gunther's avatar Jacob Gunther
Browse files

Use uploads table

parent dc0f151a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);