Skip to content

Commit 715f2dd

Browse files
authored
fix(cli): avoid unnecessary updates to model meta (#1636)
1 parent ca40e00 commit 715f2dd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/sdk/src/model-meta-generator.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ function generateModelMetadata(
8888
writer.block(() => {
8989
writeModels(sourceFile, writer, dataModels, options);
9090
writeDeleteCascade(writer, dataModels);
91-
writeAuthModel(writer, dataModels);
9291
writeShortNameMap(options, writer);
92+
writeAuthModel(writer, dataModels);
9393
});
9494
}
9595

@@ -131,7 +131,6 @@ function writeAuthModel(writer: CodeBlockWriter, dataModels: DataModel[]) {
131131
const authModel = getAuthModel(dataModels);
132132
if (authModel) {
133133
writer.writeLine(`authModel: '${authModel.name}'`);
134-
writer.writeLine(',');
135134
}
136135
}
137136

0 commit comments

Comments
 (0)