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

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

Merged
merged 7 commits into from May 16, 2018

Conversation

ehhc
Copy link
Contributor

@ehhc ehhc commented May 10, 2018

No description provided.

@@ -42,6 +44,11 @@ test.serial('Delete a note', (t) => {
return Promise.resolve()
.then(function doTest () {
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
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
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 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

3 participants