Skip to content
This repository was archived by the owner on May 12, 2026. It is now read-only.

Deleting a note should also delete the attachments -> fixes #1900#1902

Merged
Rokt33r merged 7 commits into
BoostIO:masterfrom
ehhc:Issue_1900
May 16, 2018
Merged

Deleting a note should also delete the attachments -> fixes #1900#1902
Rokt33r merged 7 commits into
BoostIO:masterfrom
ehhc:Issue_1900

Conversation

@ehhc

@ehhc ehhc commented May 10, 2018

Copy link
Copy Markdown
Contributor

No description provided.

return createNote(storageKey, input1)
.then(function createAttachmentFolder (data) {
fs.mkdirSync(path.join(storagePath, attachmentManagement.DESTINATION_FOLDER))
fs.mkdirSync(path.join(storagePath, attachmentManagement.DESTINATION_FOLDER, data.key))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI: Sander uses mkdirp. So it can be written in a single line. 💃 https://github.com/Rich-Harris/sander

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to know. i will rember that :)

@Rokt33r Rokt33r added next release (v0.11.5) and removed awaiting review ❇️ Pull request is awaiting a review. labels May 16, 2018
@Rokt33r Rokt33r merged commit 2a6d950 into BoostIO:master May 16, 2018
@ehhc ehhc deleted the Issue_1900 branch May 16, 2018 17:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants