File tree Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change 1- use(' xforge')
1+ use(" xforge");
22
33// Query to find what project is using a project as a source (and therefore preventing the specified project from being
44// deleted). This is a re-implementation of the logic in SFProjectService.IsSourceProject
55
6- const shortName = '' ;
6+ const shortName = "" ;
77
8- const id = db.sf_projects.findOne({ shortName })._id
8+ const id = db.sf_projects.findOne({ shortName })._id;
99
1010db.sf_projects.find({
11- $or: [{
12- 'translateConfig.source.projectRef': id
13- }, {
14- 'translateConfig.draftConfig.alternateSource.projectRef': id
15- }, {
16- 'translateConfig.draftConfig.alternateTrainingSource.projectRef': id
17- }, {
18- 'translateConfig.draftConfig.additionalTrainingSource.projectRef': id
19- }]
20- })
11+ $or: [
12+ {
13+ "translateConfig.source.projectRef": id
14+ },
15+ {
16+ "translateConfig.draftConfig.draftingSources.projectRef": id
17+ },
18+ {
19+ "translateConfig.draftConfig.trainingSources.projectRef": id
20+ }
21+ ]
22+ });
You can’t perform that action at this time.
0 commit comments