update excel file
This commit is contained in:
@@ -25,7 +25,7 @@ import { SalonServiceOffering } from './entities/salon-service-offering.entity';
|
||||
import { ServiceSkill } from './entities/service-skill.entity';
|
||||
import { Service } from './entities/service.entity';
|
||||
|
||||
const TITLE_HEADERS = new Set(['عنوان مهارت', 'title', 'عنوان']);
|
||||
const TITLE_HEADERS = new Set(['مهارت', 'عنوان مهارت', 'title', 'عنوان']);
|
||||
const RENEWAL_HEADERS = new Set([
|
||||
'دوره بازگشت (روز)',
|
||||
'دوره بازگشت',
|
||||
@@ -125,8 +125,8 @@ export class ServicesService {
|
||||
const sheet = workbook.addWorksheet('مهارتها');
|
||||
|
||||
sheet.columns = [
|
||||
{ header: 'عنوان مهارت', key: 'title', width: 40 },
|
||||
{ header: 'دوره بازگشت (روز)', key: 'renewalDays', width: 22 },
|
||||
{ header: 'مهارت', key: 'title', width: 40 },
|
||||
{ header: 'دوره بازگشت', key: 'renewalDays', width: 22 },
|
||||
];
|
||||
|
||||
sheet.getRow(1).font = { bold: true };
|
||||
@@ -422,7 +422,7 @@ export class ServicesService {
|
||||
|
||||
if (!titleCol || !renewalCol) {
|
||||
throw new BadRequestException(
|
||||
'ستونهای «عنوان مهارت» و «دوره بازگشت (روز)» در ردیف اول الزامی هستند',
|
||||
'ستونهای «مهارت» و «دوره بازگشت» در ردیف اول الزامی هستند',
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user