mutano 1.0.3 → 1.0.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/main.js +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -230,7 +230,7 @@ async function generate(config) {
|
|
|
230
230
|
const prismaTable = prismaTables.find((t) => t?.name === table);
|
|
231
231
|
let enumOptions;
|
|
232
232
|
describes = prismaTable.properties.filter(
|
|
233
|
-
(p) => p.type === "field" && !p.attributes?.find((a) => a.name === "relation")
|
|
233
|
+
(p) => p.type === "field" && p.array !== true && !p.attributes?.find((a) => a.name === "relation")
|
|
234
234
|
).map((field) => {
|
|
235
235
|
const defaultValueField = field.attributes ? field.attributes.find((a) => a.name === "default") : null;
|
|
236
236
|
const defaultValue = defaultValueField?.args?.[0].value;
|
package/package.json
CHANGED