screwdriver-api 7.0.27 → 7.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "screwdriver-api",
3
- "version": "7.0.27",
3
+ "version": "7.0.28",
4
4
  "description": "API server for the Screwdriver.cd service",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -150,7 +150,7 @@ module.exports = () => ({
150
150
  if (!oldPipeline.badges) {
151
151
  oldPipeline.badges = badges;
152
152
  } else {
153
- const newBadges = [];
153
+ const newBadges = {};
154
154
 
155
155
  Object.keys(oldPipeline.badges).forEach(badgeKey => {
156
156
  newBadges[badgeKey] = {