Skip to content

Commit 2685b88

Browse files
committed
chore: wip
1 parent bb7c1da commit 2685b88

File tree

1 file changed

+4
-3
lines changed
  • .stacks/core/database/src/migrations

1 file changed

+4
-3
lines changed

.stacks/core/database/src/migrations/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,9 @@ ${model.name?.toLowerCase()}Id Int?
8282
fs.writeFile(path, schema, (err) => {
8383
if (err)
8484
console.error(`Error writing schema file: ${err.message}`)
85-
// else
86-
// console.log(`Schema file generated successfully at path: ${path}`)
85+
else
86+
// eslint-disable-next-line no-console
87+
console.log(`Schema file generated successfully at path: ${path}`)
8788
})
8889
}
8990

@@ -103,7 +104,7 @@ function readModelsFromFolder(folderPath: string): Promise<Model[]> {
103104
return import(filePath).then((data) => {
104105
models.push({
105106
name: data.default.name,
106-
columns: data.default.fields,
107+
fields: data.default.fields,
107108
})
108109
})
109110
})

0 commit comments

Comments
 (0)