Skip to content

Commit

Permalink
Merge pull request #45 from domapic/release-1.0.0-alpha.13
Browse files Browse the repository at this point in the history
Release 1.0.0 alpha.13
  • Loading branch information
javierbrea committed Dec 17, 2018
2 parents f0a5912 + ab0f747 commit 6933464
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Fixed
### Removed

## [1.0.0-alpha.13] - 2018-12-17
### Fixed
- Return new documents in update commands.

## [1.0.0-alpha.12] - 2018-12-16
### Added
- Add api resources for managing service custom configurations for specific plugin packages.
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017 Javier Brea
Copyright (c) 2018 Javier Brea

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions lib/commands/ability.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ const Commands = (service, models, client) => {

const update = (_id, data) => models.Ability.findOneAndUpdate({
_id
}, data, { runValidators: true }).catch(error => utils.transformValidationErrors(error, service)).then(ensureAbility)
}, data, { runValidators: true, new: true }).catch(error => utils.transformValidationErrors(error, service)).then(ensureAbility)

const remove = (_id) => models.Ability.findOneAndRemove({_id}).then(ensureAbility)
const remove = (_id) => models.Ability.findOneAndRemove({ _id }).then(ensureAbility)
.then(ability => service.tracer.debug(templates.abilityRemoved(ability)))

const validateData = (ability, data) => {
Expand Down
2 changes: 1 addition & 1 deletion lib/commands/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const Commands = (service, models, client) => {

const update = (_id, data) => models.Service.findOneAndUpdate({
_id
}, data, { runValidators: true, context: 'query' }).catch(error => utils.transformValidationErrors(error, service)).then(ensureService)
}, data, { runValidators: true, context: 'query', new: true }).catch(error => utils.transformValidationErrors(error, service)).then(ensureService)

return {
add,
Expand Down
2 changes: 1 addition & 1 deletion lib/commands/servicePluginConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const Commands = (service, models, client) => {

const update = (_id, data) => models.ServicePluginConfig.findOneAndUpdate({
_id
}, data, { runValidators: true, context: 'query' }).catch(error => utils.transformValidationErrors(error, service)).then(ensureServicePluginConfig)
}, data, { runValidators: true, context: 'query', new: true }).catch(error => utils.transformValidationErrors(error, service)).then(ensureServicePluginConfig)

return {
add,
Expand Down
2 changes: 1 addition & 1 deletion npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "domapic-controller",
"version": "1.0.0-alpha.12",
"version": "1.0.0-alpha.13",
"description": "Controller for Domapic systems",
"main": "server.js",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sonar.organization=domapic
sonar.projectKey=domapic-controller
sonar.projectVersion=1.0.0-alpha.12
sonar.projectVersion=1.0.0-alpha.13

sonar.sources=.
sonar.exclusions=node_modules/**
Expand Down

0 comments on commit 6933464

Please sign in to comment.