@chevre/domain 23.2.0-alpha.34 → 23.2.0-alpha.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -725,22 +725,27 @@ function createInformAccountTitleTasks(params, setting) {
|
|
|
725
725
|
}
|
|
726
726
|
function syncMovieTheater(params) {
|
|
727
727
|
return (repos) => __awaiter(this, void 0, void 0, function* () {
|
|
728
|
-
if (params.ids.length !== 1) {
|
|
729
|
-
|
|
728
|
+
// if (params.ids.length !== 1) {
|
|
729
|
+
// throw new factory.errors.Argument('id', 'id.length must be 1');
|
|
730
|
+
// }
|
|
731
|
+
if (params.ids.length === 0) {
|
|
732
|
+
return;
|
|
730
733
|
}
|
|
731
734
|
const movieTheaters = yield repos.movieTheater.projectFields({
|
|
732
|
-
id: { $
|
|
735
|
+
id: { $in: params.ids },
|
|
733
736
|
project: { id: { $eq: params.project.id } }
|
|
734
737
|
}, ['id', 'name']
|
|
735
738
|
// []
|
|
736
739
|
);
|
|
737
|
-
const movieTheater = movieTheaters.shift();
|
|
738
|
-
if (movieTheater === undefined) {
|
|
739
|
-
|
|
740
|
+
// const movieTheater = movieTheaters.shift();
|
|
741
|
+
// if (movieTheater === undefined) {
|
|
742
|
+
// throw new factory.errors.NotFound(factory.placeType.MovieTheater);
|
|
743
|
+
// }
|
|
744
|
+
for (const movieTheater of movieTheaters) {
|
|
745
|
+
yield repos.screeningRoom.updateScreeningRoomsByContainedInPlaceId({
|
|
746
|
+
project: { id: params.project.id },
|
|
747
|
+
containedInPlace: movieTheater
|
|
748
|
+
});
|
|
740
749
|
}
|
|
741
|
-
yield repos.screeningRoom.updateScreeningRoomsByContainedInPlaceId({
|
|
742
|
-
project: { id: params.project.id },
|
|
743
|
-
containedInPlace: movieTheater
|
|
744
|
-
});
|
|
745
750
|
});
|
|
746
751
|
}
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@aws-sdk/client-cognito-identity-provider": "3.600.0",
|
|
13
13
|
"@aws-sdk/credential-providers": "3.600.0",
|
|
14
|
-
"@chevre/factory": "5.4.0-alpha.
|
|
14
|
+
"@chevre/factory": "5.4.0-alpha.23",
|
|
15
15
|
"@cinerino/sdk": "12.13.0",
|
|
16
16
|
"@motionpicture/coa-service": "9.6.0",
|
|
17
17
|
"@motionpicture/gmo-service": "5.4.0-alpha.1",
|
|
@@ -116,5 +116,5 @@
|
|
|
116
116
|
"postversion": "git push origin --tags",
|
|
117
117
|
"prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
|
|
118
118
|
},
|
|
119
|
-
"version": "23.2.0-alpha.
|
|
119
|
+
"version": "23.2.0-alpha.36"
|
|
120
120
|
}
|