Skip to content
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

Closed
wants to merge 1 commit into from
Closed

Added Delete functionality #11

wants to merge 1 commit into from

Conversation

Harish4948
Copy link

Please review the code for the added Delete Functionality.
Thank you

}
});
}
function Delete(hash) {
Copy link
Owner

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);
Copy link
Owner

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>";
Copy link
Owner

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

@Harish4948 Harish4948 closed this Oct 4, 2020
@Harish4948
Copy link
Author

Please reassign

@Presto412
Copy link
Owner

You're assigned to this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants