1
0
Fork 0
mirror of https://github.com/SunRed/haste-server.git synced 2024-12-28 15:10:11 +01:00

Merge pull request #190 from PassTheMayo/patch-1

Oh noes! I didn't even notice that I had a typo...
This commit is contained in:
John Crepezzi 2017-12-11 10:51:12 -05:00 committed by GitHub
commit 8da37ea5de
Signed by: GitHub
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,7 @@ RethinkDBStore.md5 = (str) => {
RethinkDBStore.prototype.set = (key, data, callback) => {
try {
this.client.table('uploads').insert({ id: RethinkDBStore.md5(key), data: data }).run((error) =? {
this.client.table('uploads').insert({ id: RethinkDBStore.md5(key), data: data }).run((error) => {
if (error) return callback(false);
callback(true);
});