We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a6127e commit c0a4579Copy full SHA for c0a4579
packages/schema/src/utils/ast-utils.ts
@@ -328,8 +328,8 @@ export function getConcreteModels(dataModel: DataModel): DataModel[] {
328
/**
329
* Gets the discriminator field for the given delegate model
330
*/
331
-export function getDiscriminatorField(delegate: DataModel) {
332
- const delegateAttr = getAttribute(delegate, '@@delegate');
+export function getDiscriminatorField(dataModel: DataModel) {
+ const delegateAttr = getAttribute(dataModel, '@@delegate');
333
if (!delegateAttr) {
334
return undefined;
335
}
0 commit comments