Skip to content

Commit

Permalink
fix(orgs): added delete grantsite step on delete
Browse files Browse the repository at this point in the history
  • Loading branch information
AndySakov committed Nov 9, 2024
1 parent e86d9c3 commit 3bb373a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/organizations/organizations.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1197,13 +1197,14 @@ export class OrganizationsService {
OPTIONAL MATCH (organization)-[:HAS_DISCORD]->(discord)
OPTIONAL MATCH (organization)-[:HAS_WEBSITE]->(website)
OPTIONAL MATCH (organization)-[:HAS_RAW_WEBSITE]->(rawWebsite)-[:HAS_RAW_WEBSITE_METADATA]-(metadata)
OPTIONAL MATCH (organization)-[:HAS_GRANTSITE]->(grantsite)
OPTIONAL MATCH (organization)-[:HAS_DOCSITE]->(docsite)
OPTIONAL MATCH (organization)-[:HAS_TELEGRAM]->(telegram)
OPTIONAL MATCH (organization)-[:HAS_GITHUB]->(github:GithubOrganization)
OPTIONAL MATCH (organization)-[:HAS_ORGANIZATION_ALIAS]->(alias)
OPTIONAL MATCH (organization)-[:HAS_TWITTER]->(twitter)
DETACH DELETE jobsite, jobpost, structured_jobpost,
discord, website, docsite, telegram, github, alias, twitter, tag, rawWebsite, metadata
discord, website, docsite, telegram, github, alias, twitter, tag, rawWebsite, metadata, grantsite
WITH organization
OPTIONAL MATCH (organization)-[:HAS_PROJECT]->(project)
Expand Down

0 comments on commit 3bb373a

Please sign in to comment.