Describe the bug
The transaction in deleteSurvey mixes up the orgID and appID arguments passed into GetSurvey, so surveys cannot be retrieved for deletion.
To Reproduce
Steps to reproduce the behavior:
Create a survey
Try to delete the survey
See error
Expected behavior
These arguments should be fixed so surveys can be found correctly. A unique partial index on calendar_event_id should be added to the surveys collection to prevent multiple surveys using the same calendar_event_id from being created.
Describe the bug The transaction in
deleteSurvey
mixes up theorgID
andappID
arguments passed intoGetSurvey
, so surveys cannot be retrieved for deletion.To Reproduce Steps to reproduce the behavior:
Expected behavior These arguments should be fixed so surveys can be found correctly. A unique partial index on
calendar_event_id
should be added to thesurveys
collection to prevent multiple surveys using the samecalendar_event_id
from being created.