@mbc-cqrs-serverless/cli 0.1.40-beta.0 → 0.1.41-beta.0
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.
- package/package.json +2 -2
- package/templates/infra-local/appsync-simulator/Dockerfile +1 -1
- package/templates/infra-local/appsync-simulator/package-lock.json +1406 -3835
- package/templates/infra-local/appsync-simulator/package.json +4 -1
- package/templates/infra-local/appsync-simulator/src/main.ts +15 -14
- package/templates/infra-local/appsync-simulator/src/resolversConfig.ts +1 -1
- package/templates/infra-local/cognito-local/package-lock.json +623 -285
- package/templates/infra-local/cognito-local/package.json +5 -0
- package/templates/prisma/schema.prisma +1 -1
- package/templates/src/master/master.controller.ts +3 -1
- package/templates/src/repl.ts +1 -1
|
@@ -17,7 +17,7 @@ model Master {
|
|
|
17
17
|
id String @id
|
|
18
18
|
cpk String // コマンド用PK
|
|
19
19
|
csk String // コマンド用SK
|
|
20
|
-
pk String // データ用PK, MASTER#
|
|
20
|
+
pk String // データ用PK, MASTER#tenantCode (テナントコード)
|
|
21
21
|
sk String // データ用SK, マスタ種別コード#マスタコード
|
|
22
22
|
masterTypeCode String @map("master_type_code") // マスタ種別コード, 【共通マスタ】 or 【テナント固有マスタ】
|
|
23
23
|
masterCode String @map("master_code") // マスタコード
|
|
@@ -42,7 +42,9 @@ export class MasterController {
|
|
|
42
42
|
): Promise<MasterDataEntity> {
|
|
43
43
|
this.logger.debug('cmd:', masterDto)
|
|
44
44
|
this.logger.debug('commandService:' + this.commandService.tableName)
|
|
45
|
-
const item = await this.commandService.
|
|
45
|
+
const item = await this.commandService.publishAsync(masterDto, {
|
|
46
|
+
invokeContext,
|
|
47
|
+
})
|
|
46
48
|
return new MasterDataEntity(item as MasterDataEntity)
|
|
47
49
|
}
|
|
48
50
|
|