Skip to content

Commit

Permalink
fix(cli): import redwoodjs/record correctly in yarn rw g model (#9158)
Browse files Browse the repository at this point in the history
Fixes #9069.
  • Loading branch information
jtoar committed Sep 12, 2023
1 parent 9257e39 commit f3cb595
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src/commands/generate/model/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ export const handler = async ({ force, ...args }) => {
{
title: 'Parsing datamodel, generating api/src/models/index.js...',
task: async () => {
const { parseDatamodel } = await import('@redwoodjs/record')
await parseDatamodel()
const redwoodRecordModule = await import('@redwoodjs/record')
await redwoodRecordModule.default.parseDatamodel()
},
},
].filter(Boolean),
Expand Down

0 comments on commit f3cb595

Please sign in to comment.