Skip to content
Snippets Groups Projects
Commit b3f6d6ba authored by mcmlxxix's avatar mcmlxxix
Browse files

fix typo in previous commit :(

parent e90c3f9e
Branches
Tags
No related merge requests found
...@@ -236,7 +236,7 @@ function JSONdb (fileName) { ...@@ -236,7 +236,7 @@ function JSONdb (fileName) {
/* if this client has this record locked */ /* if this client has this record locked */
else if(record.info.lock[client.id] && else if(record.info.lock[client.id] &&
record.info.lock[client.id].type == locks.WRITE) { record.info.lock[client.id].type == locks.WRITE) {
if(record.data[record.child_name] instanceof Array) { if(record.data[record.child_name] instanceof Array)
send_packet(client,record.data[record.child_name].pop(),"RESPONSE"); send_packet(client,record.data[record.child_name].pop(),"RESPONSE");
else else
this.error(client,errors.NON_ARRAY); this.error(client,errors.NON_ARRAY);
...@@ -258,7 +258,7 @@ function JSONdb (fileName) { ...@@ -258,7 +258,7 @@ function JSONdb (fileName) {
/* if this client has this record locked */ /* if this client has this record locked */
else if(record.info.lock[client.id] && else if(record.info.lock[client.id] &&
record.info.lock[client.id].type == locks.WRITE) { record.info.lock[client.id].type == locks.WRITE) {
if(record.data[record.child_name] instanceof Array) { if(record.data[record.child_name] instanceof Array)
send_packet(client,record.data[record.child_name].shift(),"RESPONSE"); send_packet(client,record.data[record.child_name].shift(),"RESPONSE");
else else
this.error(client,errors.NON_ARRAY); this.error(client,errors.NON_ARRAY);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment