refactor: unify domain and contact emails to canina.ir across all apps and seeds
Deploy Canina / deploy (push) Successful in 1m55s
Deploy Canina / deploy (push) Successful in 1m55s
This commit is contained in:
1 parent
bc011f4407
commit
6eb45cd467
33 files changed
+662
-665
No files matched your search
@@ -261,7 +261,7 @@ export class AuthService {
|
||||
}
|
||||
|
||||
async adminLogin(body: AdminLoginInput) {
|
||||
const adminEmail = process.env.ADMIN_EMAIL || 'admin@canina-iran.com';
|
||||
const adminEmail = process.env.ADMIN_EMAIL || 'admin@canina.ir';
|
||||
const adminPassword = process.env.ADMIN_PASSWORD || 'admin123';
|
||||
|
||||
// First check database for user with role 'Admin' or 'SUPER_ADMIN'
|
||||
|
||||
@@ -2,7 +2,7 @@ import { IsEmail, IsNotEmpty, IsString, MinLength } from 'class-validator';
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
|
||||
export class AdminLoginDto {
|
||||
@ApiProperty({ description: 'ایمیل ادمین', example: 'admin@canina-iran.com' })
|
||||
@ApiProperty({ description: 'ایمیل ادمین', example: 'admin@canina.ir' })
|
||||
@IsEmail({}, { message: 'فرمت ایمیل وارد شده معتبر نمیباشد.' })
|
||||
@IsNotEmpty({ message: 'ایمیل الزامی است.' })
|
||||
email!: string;
|
||||
|
||||
@@ -93,7 +93,7 @@ export class ContactService {
|
||||
{
|
||||
key: 'email_info',
|
||||
title: 'پست الکترونیک',
|
||||
value: 'info@canina-iran.com\n\nپاسخگویی در کمتر از ۲۴ ساعت کاری',
|
||||
value: 'info@canina.ir\n\nپاسخگویی در کمتر از ۲۴ ساعت کاری',
|
||||
icon: 'mail',
|
||||
order: 2,
|
||||
},
|
||||
|
||||
@@ -417,7 +417,7 @@ export class OrdersService {
|
||||
await this.smsService
|
||||
.sendSms(
|
||||
order.user.mobile,
|
||||
`کاربر گرامی، مکمل درمانی پت شما در حال اتمام است. جهت شارژ مجدد و استفاده از ۵٪ تخفیف دوره جدید به لینک زیر مراجعه کنید:\nhttps://canina-iran.com/shop`,
|
||||
`کاربر گرامی، مکمل درمانی پت شما در حال اتمام است. جهت شارژ مجدد و استفاده از ۵٪ تخفیف دوره جدید به لینک زیر مراجعه کنید:\nhttps://canina.ir/shop`,
|
||||
)
|
||||
.catch(() => {});
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ export class SeoService {
|
||||
},
|
||||
offers: {
|
||||
'@type': 'Offer',
|
||||
url: `https://canino-iran.com/shop/${product.slug}`,
|
||||
url: `https://canina.ir/shop/${product.slug}`,
|
||||
priceCurrency: 'IRR',
|
||||
price: Number(product.priceValue) * 10, // Toman to Rial conversion if needed
|
||||
availability: 'https://schema.org/InStock',
|
||||
|
||||
@@ -68,7 +68,7 @@ export class UsersService {
|
||||
id: '12345678-1234-1234-1234-123456789012',
|
||||
firstName: 'مدیر',
|
||||
lastName: 'سیستم',
|
||||
email: process.env.ADMIN_EMAIL || 'admin@canina-iran.com',
|
||||
email: process.env.ADMIN_EMAIL || 'admin@canina.ir',
|
||||
mobile: '09120000000',
|
||||
role: 'Admin',
|
||||
walletBalance: new Prisma.Decimal(0),
|
||||
|
||||
Reference in new issue
Block a user