@zenstackhq/sdk 3.10.3 → 3.10.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -532,7 +532,7 @@ var PrismaSchemaGenerator = class {
532
532
  const dataSource = this.zmodel.declarations.find(isDataSource);
533
533
  if (dataSource) attrName = attrName.replace("@db", `@${dataSource.name}`);
534
534
  }
535
- return new FieldAttribute(attrName, attr.args.map((arg) => this.makeAttributeArg(arg)));
535
+ return new FieldAttribute(attrName, attr.args.filter((arg) => !(attrName === "@updatedAt" && arg.$resolvedParam?.name === "ignore")).map((arg) => this.makeAttributeArg(arg)));
536
536
  }
537
537
  makeAttributeArg(arg) {
538
538
  return new AttributeArg(arg.name, this.makeAttributeArgValue(arg.value));