Skip to content

Commit 31aa47a

Browse files
Harminder VirkHarminder Virk
authored andcommitted
fix: convert instructions model name to pascalcase
Fixes: #204
1 parent 946e730 commit 31aa47a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

instructions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ export default async function instructions(
398398
const modelName = await getModelName(sink)
399399
state.modelName = modelName.replace(/(\.ts|\.js)$/, '')
400400
state.usersTableName = string.pluralize(string.snakeCase(state.modelName))
401-
state.modelReference = string.camelCase(state.modelName)
401+
state.modelReference = string.pascalCase(string.singularize(state.modelName))
402402
state.modelNamespace = `${app.namespacesMap.get('models') || 'App/Models'}/${state.modelName}`
403403
} else {
404404
state.usersTableName = await getTableName(sink)

0 commit comments

Comments
 (0)