issues
search
AashnaNarang
/
SurveyLab
0
stars
0
forks
source link
Backend - Update surveys Patch api to handle closing a survey
#65
Closed
AashnaNarang
closed
2 years ago
AashnaNarang
commented
2 years ago
Remove the check that doesn’t allow you to call this API if the survey is live
When
isLive
was previously
true
, but now is being updated to
false
, then update the
closedOnDate
to right now.
If
closedOnDate
≠ null, then you shouldn’t be able to make the survey
isLive = true
again
isLive
was previouslytrue
, but now is being updated tofalse
, then update theclosedOnDate
to right now.closedOnDate
≠ null, then you shouldn’t be able to make the surveyisLive = true
again