Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed May 18, 2024
1 parent 05ae57a commit 13fb396
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 22 deletions.
2 changes: 1 addition & 1 deletion app/Models/AccessToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default {
message: '`token` must be a string',
},

factory: () => faker.random.uuid(),
factory: () => faker.string.uuid(),
},

abilities: {
Expand Down
4 changes: 2 additions & 2 deletions app/Models/Team.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default {
message: '`companyName` must be a string',
},

factory: () => faker.company.companyName(),
factory: () => faker.company.name(),
},

email: {
Expand Down Expand Up @@ -89,7 +89,7 @@ export default {
message: '`isPersonal` must be a boolean',
},

factory: () => faker.random.boolean(),
factory: () => faker.datatype.boolean(),
},
},
} satisfies Model
16 changes: 0 additions & 16 deletions storage/framework/core/buddy/src/commands/migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export function migrate(buddy: CLI) {

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

if (result.isErr()) {
await outro(
Expand All @@ -68,21 +67,6 @@ export function migrate(buddy: CLI) {
useSeconds: true,
})

if (result2.isErr()) {
await outro(
'While running the migrate command, there was an issue',
{ startTime: perf, useSeconds: true },
result2.error,
)
process.exit()
}

const APP_ENV = process.env.APP_ENV || 'local'

await outro(`Migrated your ${APP_ENV} database.`, {
startTime: perf,
useSeconds: true,
})
process.exit(ExitCode.Success)
})

Expand Down
2 changes: 1 addition & 1 deletion storage/framework/database/models/AccessToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default {
message: '`token` must be a string',
},

factory: () => faker.random.uuid(),
factory: () => faker.string.uuid(),
},

abilities: {
Expand Down
4 changes: 2 additions & 2 deletions storage/framework/database/models/Team.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default {
message: '`companyName` must be a string',
},

factory: () => faker.company.companyName(),
factory: () => faker.company.name(),
},

email: {
Expand Down Expand Up @@ -89,7 +89,7 @@ export default {
message: '`isPersonal` must be a boolean',
},

factory: () => faker.random.boolean(),
factory: () => faker.datatype.boolean(),
},
},
} satisfies Model

0 comments on commit 13fb396

Please sign in to comment.