Skip to content

Commit 7185952

Browse files
committed
chore: wip
1 parent 59b4828 commit 7185952

File tree

6 files changed

+4
-3
lines changed

6 files changed

+4
-3
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

storage/framework/actions/UserStoreOrmAction.ts renamed to storage/framework/actions/src/UserStoreOrmAction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Action } from '@stacksjs/actions'
22
import type { UserRequestType } from '../../types/requests'
3-
import User from '../src/models/User'
3+
import User from '../../orm/src/models/User'
44

55
export default new Action({
66
name: 'User Store',

storage/framework/core/actions/src/orm/generate-model.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ function hasRelations(obj: any, key: string): boolean {
464464
}
465465

466466
async function deleteExistingModels(modelStringFile?: string) {
467-
const typePath = path.corePath(`orm/src/generated/types.ts`)
467+
const typePath = path.frameworkPath(`orm/src/types.ts`)
468468

469469
if (fs.existsSync(typePath)) await Bun.$`rm ${typePath}`
470470

@@ -589,7 +589,7 @@ async function setKyselyTypes() {
589589

590590
text += `}`
591591

592-
const file = Bun.file(path.frameworkPath(`core/orm/src/generated/types.ts`))
592+
const file = Bun.file(path.frameworkPath(`orm/src/types.ts`))
593593

594594
const writer = file.writer()
595595

0 commit comments

Comments
 (0)