Skip to content

Commit

Permalink
Brazil as default country
Browse files Browse the repository at this point in the history
  • Loading branch information
MatheusSanchez committed Feb 4, 2024
1 parent 2ad15a1 commit 98b4281
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "User" ALTER COLUMN "country" SET DEFAULT 'Brazil';
2 changes: 1 addition & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ model User {
is_google Boolean @default(false)
created_at DateTime @default(now())
updated_at DateTime @updatedAt
country String @default("brasil")
country String @default("Brazil")
projects Project[]
}
Expand Down
2 changes: 1 addition & 1 deletion src/controller/user/getUserByEmail.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('Get User By email E2E', () => {
expect.objectContaining({
email: '[email protected]',
id: userAuth.userId,
country: 'brasil',
country: 'Brazil',
}),
)
})
Expand Down
2 changes: 1 addition & 1 deletion src/controller/user/getUserById.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('Get User By Id E2E', () => {
expect(getUserByIdResponse.body.user).toEqual(
expect.objectContaining({
id: userAuth.userId,
country: 'brasil',
country: 'Brazil',
}),
)
})
Expand Down

0 comments on commit 98b4281

Please sign in to comment.