From 19c2725073582caa2ab5571c2be518fcecd5edb7 Mon Sep 17 00:00:00 2001 From: Quang Quan Date: Thu, 28 Nov 2024 09:14:30 +0700 Subject: [PATCH] change typecode from master to dto --- packages/sequence/src/sequences.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sequence/src/sequences.service.ts b/packages/sequence/src/sequences.service.ts index 1448bcd..da001a4 100644 --- a/packages/sequence/src/sequences.service.ts +++ b/packages/sequence/src/sequences.service.ts @@ -120,7 +120,7 @@ export class SequencesService implements ISequenceService { const { date, rotateBy, tenantCode, params, typeCode } = dto const generalMasterPk = masterPk(tenantCode) - const generalMasterSk = `SEQ${KEY_SEPARATOR}${params?.code1}` + const generalMasterSk = `SEQ${KEY_SEPARATOR}${typeCode}` this.logger.log('general master pk: ', generalMasterPk) this.logger.log('general master sk: ', generalMasterSk) const masterData = await this.masterDataProvider.getData({