diff --git a/es/watchers/extraFile.js b/es/watchers/extraFile.js index 6843c9c4b..cc0e63f8e 100644 --- a/es/watchers/extraFile.js +++ b/es/watchers/extraFile.js @@ -2,8 +2,7 @@ import { assert } from 'oak-domain/lib/utils/assert'; import { getCosBackend } from '../utils/cos/index.backend'; import { generateNewIdAsync } from 'oak-domain/lib/utils/uuid'; import { groupBy } from 'oak-domain/lib/utils/lodash'; -import { extraFileProjection } from '../types/Projection'; -import applicationPassport from '../components/applicationPassport'; +import { applicationProjection, extraFileProjection } from '../types/Projection'; async function checkWhetherSuccess(context, applicationId, rows) { const successIds = []; const failedIds = []; @@ -104,7 +103,7 @@ const watchers = [ projection: { ...extraFileProjection, application: { - ...applicationPassport, + ...applicationProjection, } }, fn: async (context, data) => { diff --git a/lib/watchers/extraFile.js b/lib/watchers/extraFile.js index 615356761..540e94efa 100644 --- a/lib/watchers/extraFile.js +++ b/lib/watchers/extraFile.js @@ -1,12 +1,10 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); const assert_1 = require("oak-domain/lib/utils/assert"); const index_backend_1 = require("../utils/cos/index.backend"); const uuid_1 = require("oak-domain/lib/utils/uuid"); const lodash_1 = require("oak-domain/lib/utils/lodash"); const Projection_1 = require("../types/Projection"); -const applicationPassport_1 = tslib_1.__importDefault(require("../components/applicationPassport")); async function checkWhetherSuccess(context, applicationId, rows) { const successIds = []; const failedIds = []; @@ -107,7 +105,7 @@ const watchers = [ projection: { ...Projection_1.extraFileProjection, application: { - ...applicationPassport_1.default, + ...Projection_1.applicationProjection, } }, fn: async (context, data) => { diff --git a/src/watchers/extraFile.ts b/src/watchers/extraFile.ts index 60caeef46..c58079c0a 100644 --- a/src/watchers/extraFile.ts +++ b/src/watchers/extraFile.ts @@ -5,8 +5,7 @@ import { Watcher, BBWatcher } from 'oak-domain/lib/types/Watcher'; import { getCosBackend } from '../utils/cos/index.backend'; import { generateNewIdAsync } from 'oak-domain/lib/utils/uuid'; import { groupBy } from 'oak-domain/lib/utils/lodash'; -import { extraFileProjection } from '../types/Projection'; -import applicationPassport from '../components/applicationPassport'; +import { applicationProjection, extraFileProjection } from '../types/Projection'; async function checkWhetherSuccess(context: BackendRuntimeContext, applicationId: string, rows: EntityDict['extraFile']['OpSchema'][]) { const successIds: string[] = []; @@ -121,7 +120,7 @@ const watchers: Watcher< projection: { ...extraFileProjection, application: { - ...applicationPassport, + ...applicationProjection, } }, fn: async (context, data) => {