feat: changes for prisms on package.json
This commit is contained in:
commit
32486dcaaf
|
|
@ -46,4 +46,6 @@ PINTEREST_CLIENT_SECRET=""
|
|||
DRIBBBLE_CLIENT_ID=""
|
||||
DRIBBBLE_CLIENT_SECRET=""
|
||||
IS_GENERAL="true"
|
||||
NEXT_PUBLIC_POLOTNO="Polotno key for the gallery"
|
||||
EMAIL_FROM_ADDRESS=""
|
||||
EMAIL_FROM_NAME=""
|
||||
NEXT_PUBLIC_POLOTNO="Polotno key for the gallery"
|
||||
|
|
|
|||
|
|
@ -11,9 +11,14 @@ export class EmailService {
|
|||
return;
|
||||
}
|
||||
|
||||
if (!process.env.EMAIL_FROM_ADDRESS || !process.env.EMAIL_FROM_NAME) {
|
||||
console.log('Email sender information not found in environment variables');
|
||||
return;
|
||||
}
|
||||
|
||||
console.log('Sending email to', to);
|
||||
const sends = await resend.emails.send({
|
||||
from: process.env.IS_GENERAL === 'true' ? 'Nevo <nevo@postiz.com>' : 'Nevo <nevo@postiz.com>',
|
||||
from: `${process.env.EMAIL_FROM_NAME} <${process.env.EMAIL_FROM_ADDRESS}>`,
|
||||
to,
|
||||
subject,
|
||||
html,
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@
|
|||
"command": "rm -rf dist/apps/commands && nx run commands:build && nx run commands:command",
|
||||
"prisma-generate": "cd ./libraries/nestjs-libraries/src/database/prisma && npx prisma generate",
|
||||
"prisma-db-push": "cd ./libraries/nestjs-libraries/src/database/prisma && npx prisma db push",
|
||||
"prisma-reset": "cd ./libraries/nestjs-libraries/src/database/prisma && npx prisma db push --force-reset && npx prisma db push",
|
||||
"postinstall": "npm run prisma-generate"
|
||||
},
|
||||
"private": true,
|
||||
|
|
|
|||
Loading…
Reference in New Issue