We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
steps to reproduce:
In step 2, the frontend will fetch /v1/challenge/edit over here:
https://github.com/IRS-Cybersec/ctf_platform/blob/master/client/src/AdminPanel/adminChallengeEdit.js#L93-L111
When the value of an attribute is undefined, JSON.stringify will remove the attribute altogether.
undefined
JSON.stringify
https://github.com/IRS-Cybersec/ctf_platform/blob/master/api/api.js#L1022-L1025
The backend calls updateOne() with $set; because updateObj contains no requires attribute, the challenge requirement remains in the db
updateOne()
$set
updateObj
requires
The text was updated successfully, but these errors were encountered:
Fixed in 245d0f2
Sorry, something went wrong.
No branches or pull requests
steps to reproduce:
bug source
In step 2, the frontend will fetch /v1/challenge/edit over here:
https://github.com/IRS-Cybersec/ctf_platform/blob/master/client/src/AdminPanel/adminChallengeEdit.js#L93-L111
When the value of an attribute is
undefined
,JSON.stringify
will remove the attribute altogether.https://github.com/IRS-Cybersec/ctf_platform/blob/master/api/api.js#L1022-L1025
The backend calls
updateOne()
with$set
; becauseupdateObj
contains norequires
attribute, the challenge requirement remains in the dbThe text was updated successfully, but these errors were encountered: