Skip to content
Snippets Groups Projects
Commit 6fe68362 authored by deuce's avatar deuce
Browse files

Add a get_issue() function to return a single issue by index.

parent 89bc1363
Branches
Tags
No related merge requests found
......@@ -103,6 +103,16 @@ function ConcensusObject(host, port, scope)
return(issues);
}
this.get_issue=function(index)
{
var issue=this.db.read(this.scope, 'issues.'+index, LOCK_READ);
this.add_issue_funcs(issue);
issue.index=index;
issue.db=this.db;
issue.scope=this.scope;
return issue;
}
this.is_closed=function(issue)
{
var i;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment