Is the below code correct?
gormDBObject.Where("uuid = ? and parent_organization_id is not NULL", requestObj.ChildOrganizationUUID).Delete(&deletedChildOrganization)
I tried running this but I'm getting this error:
ERROR: syntax error at or near "$2" (SQLSTATE 42601)
[16.392ms] [rows:0] DELETE FROM "organizations" WHERE uuid = '06bf1601-5899-4063-ba8e-ecc250bfe1ab' AND parent_organization_id is not NULL
Expected answer
Should run without errors.
Comment From: github-actions[bot]
This issue has been automatically marked as stale because it has been open 360 days with no activity. Remove stale label or comment or this will be closed in 180 days