refactor: unify domain and contact emails to canina.ir across all apps and seeds
Deploy Canina / deploy (push) Successful in 1m55s

This commit is contained in:
parsa aghaei committed 2026-08-19 11:52:36 +03:30
1 parent bc011f4407
commit 6eb45cd467
33 files changed
+662 -665

No files matched your search

+1 -1
View File
@@ -446,7 +446,7 @@ export async function main() {
create: {
id: adminId,
mobile: '09120000000',
email: 'admin@canino-iran.com',
email: 'admin@canina.ir',
firstName: 'Admin',
lastName: 'User',
role: 'ADMIN',
+1 -1
View File
@@ -120,7 +120,7 @@ const UI_TEXTS: Record<string, string> = {
"footer_phone_label": "خط ویژه فروش",
"footer_phone": "۰۲۱-۸۸۸۸ ۴۴۴۴",
"footer_email_label": "مکاتبات رسمی",
"footer_email": "info@canino-iran.com",
"footer_email": "info@canina.ir",
"footer_address_label": "دفتر مرکزی",
"footer_address": "تهران، جردن، خیابان سعیدی، ساختمان کنینا، طبقه ۵، واحد ۱۹",
"footer_auth_title": "اصالت کالا تضمین می‌شود",
+2 -2
View File
@@ -33,7 +33,7 @@ async function main() {
console.log('Creating Admin User...');
const adminHashedPassword = await bcrypt.hash('admin123', 10);
await prisma.user.upsert({
where: { email: 'admin@canino-iran.com' },
where: { email: 'admin@canina.ir' },
update: {
password: adminHashedPassword,
role: 'Admin',
@@ -42,7 +42,7 @@ async function main() {
id: '12345678-1234-1234-1234-123456789012',
firstName: 'مدیر',
lastName: 'سیستم',
email: 'admin@canino-iran.com',
email: 'admin@canina.ir',
password: adminHashedPassword,
role: 'Admin',
mobile: '09120000001'
+1 -1
View File
@@ -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'
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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,
},
+1 -1
View File
@@ -417,7 +417,7 @@ export class OrdersService {
await this.smsService
.sendSms(
order.user.mobile,
`کاربر گرامی، مکمل درمانی پت شما در حال اتمام است. جهت شارژ مجدد و استفاده از ۵٪ تخفیف دوره جدید به لینک زیر مراجعه کنید:\nhttps://canina-iran.com/shop`,
`کاربر گرامی، مکمل درمانی پت شما در حال اتمام است. جهت شارژ مجدد و استفاده از ۵٪ تخفیف دوره جدید به لینک زیر مراجعه کنید:\nhttps://canina.ir/shop`,
)
.catch(() => {});
}
+1 -1
View File
@@ -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',
+1 -1
View File
@@ -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),