vanderbilt-redcap / email-alerts-module

Module to send customized emails alerts after a form/survey is completed to one or several recipients.
MIT License
3 stars 9 forks source link

get surveyLink & returnCode without form status change #29

Closed takuy closed 3 years ago

takuy commented 3 years ago

This would close #28 by removing the usage of resetSurveyAndGetCodes to return both the hash and return_code; instead using the REDCap EM functions getSurveyReturnCode and getSurveyLink instead to obtain this information.

getSurveyReturnCode always returns a forcefully uppercased text string, so the comparison needs to happen in a case-insensitive way.

sonarcloud[bot] commented 3 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication