From 88f1e33fe8c8a4e1113b53b0e818d8990234cd26 Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Sat, 14 Dec 2019 12:03:51 +0800 Subject: [PATCH] fix: don't insert underscores for retry codes (#172) --- typescript/src/schema/proto.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/typescript/src/schema/proto.ts b/typescript/src/schema/proto.ts index 230aa9eac..ffed121a1 100644 --- a/typescript/src/schema/proto.ts +++ b/typescript/src/schema/proto.ts @@ -107,6 +107,9 @@ export class RetryableCodeMap { const uniqueName = sortedCodes .map(code => this.codeEnumMapping[code]) .join('_') + // toSnakeCase() splits on uppercase and we only want to split on + // underscores since all enum codes are uppercase. + .toLowerCase() .toSnakeCase(); return uniqueName; }