-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
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
Added Delete functionality #11
Conversation
} | ||
}); | ||
} | ||
function Delete(hash) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be renamed to lowercase delete
); | ||
if (possiblePresentFile.length !== 0) { | ||
try { | ||
fs.unlinkSync(possiblePresentFile[0].path + fileDetails.name); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What we'd like to do, is delete the file clusterwide. So it would make sense if you can make async delete API calls to the rest of the servers and remove it from the map, and then store it.
success: function (response) { | ||
console.log("sresponse", response); | ||
document.getElementById("delete").innerHTML = | ||
"<p>" + response.url + "</p>"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
response.url will be empty, so you can update this to rather display the message
Please reassign |
You're assigned to this issue |
Please review the code for the added Delete Functionality.
Thank you