Skip to content

Commit

Permalink
add sendgrid config (#541)
Browse files Browse the repository at this point in the history
* added config for sendgrid

* chore: orderByNulls is now standard feature

* formatting

---------

Co-authored-by: igoychev <[email protected]>
  • Loading branch information
quantum-grit and igoychev authored Aug 28, 2023
1 parent eb1de60 commit 06ea11e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
15 changes: 15 additions & 0 deletions manifests/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,21 @@ spec:
configMapKeyRef:
name: sendgrid-config
key: contacts-endpoint
- name: MARKETING_LIST_ID
valueFrom:
configMapKeyRef:
name: sendgrid-config
key: marketing-list-id
- name: SENDGRID_SENDER_ID
valueFrom:
configMapKeyRef:
name: sendgrid-config
key: sender-id
- name: SEND_MARKETING_NOTIFICATIONS
valueFrom:
configMapKeyRef:
name: sendgrid-config
key: enable-notifications
- name: SENDGRID_API_KEY
valueFrom:
secretKeyRef:
Expand Down
3 changes: 3 additions & 0 deletions manifests/base/sendgrid-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ data:
sender-email: [email protected]
internal-notifications-email: [email protected]
contacts-endpoint: /v3/marketing/contacts
marketing-list-id: 90f99c9a-45a1-489d-88ea-77dd2593a670
sender-id: '2000909'
enable-notifications: 'true'
3 changes: 1 addition & 2 deletions schema.prisma
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
generator client {
provider = "prisma-client-js"
binaryTargets = ["native"]
previewFeatures = ["orderByNulls"]
}

generator dbml {
Expand Down Expand Up @@ -566,7 +565,7 @@ model BankAccount {
@@map("bank_accounts")
}

// Stores all movements for Podkrepi.bg IBAN
// Stores all movements for Podkrepi.bg IBAN
model BankTransaction {
id String @id @unique @db.VarChar(250)
/// IBAN number of the account tracked
Expand Down

0 comments on commit 06ea11e

Please sign in to comment.