Skip to content

Commit 77034a0

Browse files
chore: wip
1 parent bd3effc commit 77034a0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

storage/framework/core/orm/src/utils.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,11 @@ export async function writeOrmActions(apiRoute: string, modelName: String): Prom
466466
})
467467
`
468468

469-
const file = Bun.file(path.builtUserActionsPath(`src/${modelName}${formattedApiRoute}OrmAction.ts`))
469+
const actionFile = path.builtUserActionsPath(`src/${modelName}${formattedApiRoute}OrmAction.ts`)
470+
471+
if (fs.existsSync(actionFile)) return
472+
473+
const file = Bun.file(actionFile)
470474

471475
const writer = file.writer()
472476

@@ -1661,10 +1665,6 @@ export async function generateModelFiles(modelStringFile?: string, options?: Gen
16611665
await deleteExistingModels(modelStringFile)
16621666
log.success('Deleted Models')
16631667

1664-
log.info('Deleting old ORM Actions...')
1665-
await deleteExistingOrmActions(modelStringFile)
1666-
log.success('Deleted ORM Actions')
1667-
16681668
log.info('Deleting old Model Name types...')
16691669
await deleteExistingModelNameTypes()
16701670
log.success('Deleted Model Name types')

0 commit comments

Comments
 (0)