Skip to content

Commit 13fb396

Browse files
committed
chore: wip
1 parent 05ae57a commit 13fb396

File tree

5 files changed

+6
-22
lines changed

5 files changed

+6
-22
lines changed

app/Models/AccessToken.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default {
3636
message: '`token` must be a string',
3737
},
3838

39-
factory: () => faker.random.uuid(),
39+
factory: () => faker.string.uuid(),
4040
},
4141

4242
abilities: {

app/Models/Team.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default {
3535
message: '`companyName` must be a string',
3636
},
3737

38-
factory: () => faker.company.companyName(),
38+
factory: () => faker.company.name(),
3939
},
4040

4141
email: {
@@ -89,7 +89,7 @@ export default {
8989
message: '`isPersonal` must be a boolean',
9090
},
9191

92-
factory: () => faker.random.boolean(),
92+
factory: () => faker.datatype.boolean(),
9393
},
9494
},
9595
} satisfies Model

storage/framework/core/buddy/src/commands/migrate.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ export function migrate(buddy: CLI) {
5252

5353
const perf = await intro('buddy migrate:fresh')
5454
const result = await runAction(Action.MigrateFresh, options)
55-
const result2 = await runAction(Action.Migrate, options)
5655

5756
if (result.isErr()) {
5857
await outro(
@@ -68,21 +67,6 @@ export function migrate(buddy: CLI) {
6867
useSeconds: true,
6968
})
7069

71-
if (result2.isErr()) {
72-
await outro(
73-
'While running the migrate command, there was an issue',
74-
{ startTime: perf, useSeconds: true },
75-
result2.error,
76-
)
77-
process.exit()
78-
}
79-
80-
const APP_ENV = process.env.APP_ENV || 'local'
81-
82-
await outro(`Migrated your ${APP_ENV} database.`, {
83-
startTime: perf,
84-
useSeconds: true,
85-
})
8670
process.exit(ExitCode.Success)
8771
})
8872

storage/framework/database/models/AccessToken.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default {
3636
message: '`token` must be a string',
3737
},
3838

39-
factory: () => faker.random.uuid(),
39+
factory: () => faker.string.uuid(),
4040
},
4141

4242
abilities: {

storage/framework/database/models/Team.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default {
3535
message: '`companyName` must be a string',
3636
},
3737

38-
factory: () => faker.company.companyName(),
38+
factory: () => faker.company.name(),
3939
},
4040

4141
email: {
@@ -89,7 +89,7 @@ export default {
8989
message: '`isPersonal` must be a boolean',
9090
},
9191

92-
factory: () => faker.random.boolean(),
92+
factory: () => faker.datatype.boolean(),
9393
},
9494
},
9595
} satisfies Model

0 commit comments

Comments
 (0)