Skip to content
Snippets Groups Projects
Commit cdfcb671 authored by Erkan Karabulut's avatar Erkan Karabulut
Browse files

fix service request deletion command

parent 6b7dda39
No related branches found
No related tags found
No related merge requests found
......@@ -37,10 +37,8 @@ export class RequestRepository {
*/
static deleteRequest(dbContext: DbContext, requestId) {
return dbContext.callExtension("runQuery",
`match (t:Taxonomy)<-[rel1]-(r:Request {objectId: $objectId})<-[rel2]-(s:Sensor)
delete rel1, rel2, r;
match (r2:Request {objectId: $objectId})-[rel3]->(t2:Taxonomy)
delete rel3, r2`, {
`match (t)-[rel]-(r:Request {objectId: $objectId})
delete rel`, {
objectId: requestId
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment