-
Notifications
You must be signed in to change notification settings - Fork 0
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
Repair photos #897
base: dev
Are you sure you want to change the base?
Repair photos #897
Conversation
89ddf84
to
619be86
Compare
}) | ||
|
||
it('should delete all the photos of article', () => { | ||
// Given |
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.
delete
// Given |
}) | ||
|
||
it('should get dropbox files folder path', () => { | ||
// Given |
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.
delete
}) | ||
|
||
it('should get dropbox files folder path', () => { | ||
// Given |
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.
delete
async function sync(dropboxId) { | ||
photoRepository.deletePhotosOfArticle(dropboxId) | ||
const dropboxFilesPath = await DropboxClient.getFilesFolderPaths(dropboxId) | ||
return CreateArticleGallery.createArticleGallery(dropboxFilesPath, dropboxId) |
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.
need to test the returned
@@ -5,6 +5,10 @@ const PhotosApi = { | |||
fetch(id) { | |||
return apiService.get(`articles/${id}/photos`) | |||
}, | |||
|
|||
update(id) { | |||
return apiService.put(`admin/articles/${id}/photos`) |
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.
test
@@ -84,6 +90,7 @@ | |||
return { | |||
isUpdateClicked: false, | |||
isUpdateChapterClicked: false, | |||
isUpdatePhotosClicked: false, |
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.
test the whole file
@@ -260,6 +260,7 @@ function _shareChapterImage(imgLink) { | |||
.then(_transformToImgLink) | |||
} | |||
|
|||
// TODO: is different of create-article-gallery.js ??? |
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.
take time to work on that
No description provided.