Skip to content

Commit

Permalink
fix: rollback remove unused task
Browse files Browse the repository at this point in the history
  • Loading branch information
ClemDoum committed Oct 31, 2023
1 parent 49584a3 commit 8b98180
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/java/org/icij/datashare/Neo4jResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,15 @@ public Payload postSortedGraphDump(String project, Context context) {
});
}

@Get("/tasks/:taskId?project=:project")
public Payload getTask(String taskId, String project, Context context) {
return wrapNeo4jAppCall(() -> {
checkProjectAccess(project, context);
checkTaskAccess(taskId, project, context);
return task(taskId, project);
});
}

protected void checkNeo4jAppStarted() {
if (neo4jAppPid() == null) {
throw new Neo4jNotRunningError();
Expand Down

0 comments on commit 8b98180

Please sign in to comment.