skip when breakpoint isn't found over project, it must created by newer version

This commit is contained in:
Oleg Isonen committed 2022-05-09 22:00:50 +02:00
1 parent aeabf711ca
commit fa2bec7f06
1 file changed
+1
@@ -6,6 +6,7 @@ let migrateBreakpoints = () => {
print(`updating breakpoints for ${project._id}`);
try {
const breakpoint = db.Breakpoints.findOne({ _id: project._id });
if (breakpoint === null) return;
breakpoint._id = project.devTreeId;
db.Breakpoints.insertOne(breakpoint);
db.Breakpoints.remove({ _id: project._id }, true);