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

Apply pipeline to db api endpoint #5972

Merged
merged 1 commit into from
Oct 21, 2015
Merged

Apply pipeline to db api endpoint #5972

merged 1 commit into from
Oct 21, 2015

Conversation

delgermurun
Copy link
Contributor

refs #5508

  • adds pipeline to export, import and delete all methods

@ErisDS
Copy link
Member

ErisDS commented Oct 20, 2015

I think that it should be possible to further refactor this to use utils.handlePermissions(docName, methodName) rather than having your own version? See Posts/Tags/Users for an example of what I mean

refs #5508
- adds pipeline to export, import and delete all methods
@delgermurun
Copy link
Contributor Author

@ErisDS updated. Thanks for the guide.

ErisDS added a commit that referenced this pull request Oct 21, 2015
Apply pipeline to db api endpoint
@ErisDS ErisDS merged commit ef57d81 into TryGhost:master Oct 21, 2015
@delgermurun delgermurun deleted the pipeline-db branch October 21, 2015 21:47
function validate(options) {
// Check if a file was provided
if (!utils.checkFileExists(options, 'importfile')) {
return Promise.reject(new errors.NoPermissionError('Please select a file to import.'));

This comment was marked as abuse.

This comment was marked as abuse.

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.

2 participants