mirror of
https://github.com/seejohnrun/haste-server.git
synced 2024-11-01 03:21:21 +00:00
Oh noes! I didn't even notice that I had a typo...
This commit is contained in:
parent
63c4576633
commit
ff0fccd6c2
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ RethinkDBStore.md5 = (str) => {
|
||||||
|
|
||||||
RethinkDBStore.prototype.set = (key, data, callback) => {
|
RethinkDBStore.prototype.set = (key, data, callback) => {
|
||||||
try {
|
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);
|
if (error) return callback(false);
|
||||||
callback(true);
|
callback(true);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue