From 715f2dd2a569233d02eb7d5b81b37d9ce5677075 Mon Sep 17 00:00:00 2001 From: Yiming Date: Mon, 5 Aug 2024 21:04:26 -0700 Subject: [PATCH] fix(cli): avoid unnecessary updates to model meta (#1636) --- packages/sdk/src/model-meta-generator.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/sdk/src/model-meta-generator.ts b/packages/sdk/src/model-meta-generator.ts index c0b266a21..68f6fde3c 100644 --- a/packages/sdk/src/model-meta-generator.ts +++ b/packages/sdk/src/model-meta-generator.ts @@ -88,8 +88,8 @@ function generateModelMetadata( writer.block(() => { writeModels(sourceFile, writer, dataModels, options); writeDeleteCascade(writer, dataModels); - writeAuthModel(writer, dataModels); writeShortNameMap(options, writer); + writeAuthModel(writer, dataModels); }); } @@ -131,7 +131,6 @@ function writeAuthModel(writer: CodeBlockWriter, dataModels: DataModel[]) { const authModel = getAuthModel(dataModels); if (authModel) { writer.writeLine(`authModel: '${authModel.name}'`); - writer.writeLine(','); } }