Commit 4f23696f authored by Ivanq's avatar Ivanq

Repo: Return .json instead of .json_id in ...AddComment()

parent 0b98c4c2
......@@ -413,7 +413,7 @@ class Repository {
return this.zeroDB.getJsonID(this.address + "/data/users/" + auth.address + "/data.json", 3);
})
.then(json_id => {
row.json_id = json_id;
row.json = "data/users/" + auth.address;
return this.zeroDB.query("SELECT * FROM json WHERE json_id = :jsonId", {jsonId: json_id});
})
......@@ -578,7 +578,7 @@ class Repository {
return this.zeroDB.getJsonID(this.address + "/data/users/" + auth.address + "/data.json", 3);
})
.then(json_id => {
row.json_id = json_id;
row.json = "data/users/" + auth.address;
return this.zeroDB.query("SELECT * FROM json WHERE json_id = :jsonId", {jsonId: json_id});
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment