Skip to content

Commit

Permalink
fix: not morning notif by default
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudambro committed Jan 30, 2024
1 parent 32519c2 commit 72a9063
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "User" ALTER COLUMN "notifications_preference" SET DEFAULT ARRAY['evening', 'alert']::"NotifationEnum"[];
2 changes: 1 addition & 1 deletion api-node/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ model User {
deleted_at DateTime?
deleted_because String?
favorite_indicator IndicatorsSlugEnum?
notifications_preference NotifationEnum[] @default([morning, evening, alert])
notifications_preference NotifationEnum[] @default([evening, alert])
notifications Notification[]
@@index([push_notif_token], type: Hash)
Expand Down

0 comments on commit 72a9063

Please sign in to comment.