Skip to content

Commit aef2cef

Browse files
author
gondzo
committed
temporary fix for circular dependency arroung mission service
1 parent 7d74d53 commit aef2cef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/NoFlyZoneService.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ const joi = require('joi');
1414
const _ = require('lodash');
1515
const errors = require('common-errors');
1616

17-
const MissionService = require('./MissionService');
1817
const NoFlyZone = require('../models').NoFlyZone;
1918

2019
// Exports
@@ -44,6 +43,7 @@ function _assertExists(id, entity) {
4443
*/
4544
function* _validateMission(values) {
4645
if (values.mission) {
46+
const MissionService = new require('./MissionService');
4747
yield MissionService.getSingle(values.mission);
4848
}
4949
if (values.isPermanent) {

0 commit comments

Comments
 (0)