diff --git a/packages/config/src/dynamo/dynamo.config.base.ts b/packages/config/src/dynamo/dynamo.config.base.ts index 33d363929..3383899e9 100644 --- a/packages/config/src/dynamo/dynamo.config.base.ts +++ b/packages/config/src/dynamo/dynamo.config.base.ts @@ -12,8 +12,8 @@ export class ConfigDynamoBase { prefix: ConfigPrefix; id(name: string): string { - const output: string[] = [this.prefix, name]; - return output.join('_'); + if (name.startsWith(`${this.prefix}_`)) return name; + return `${this.prefix}_${name}`; } is(obj: BaseConfig): obj is T {