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(','); } }