Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtvm authored and NicolasGeraud committed Jun 13, 2019
1 parent b74e441 commit 9340463
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions upgrades/1.25.0/mongodb/1-applications-migration.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ db.applications.find().forEach(
function (application) {
print(" update the application");

if (application.type && !application.metadata && !application.metadata.type) {
if (application.type && !("metadata" in application)) {
print(" set the SIMPLE application type for: " + application._id);
db.applications.updateOne(
{ _id: application._id },
Expand All @@ -28,4 +28,4 @@ db.applications.find().forEach(
{ _id: application._id },
{ $set: { type: 'SIMPLE' }});
}
);
);

0 comments on commit 9340463

Please sign in to comment.