Compare commits
No commits in common. "e8baaa12d2fa92c53a98e7a15626f59bac6f3bf3" and "b48a469720995c7d4a385a72012094c449f70257" have entirely different histories.
e8baaa12d2
...
b48a469720
|
@ -1,20 +0,0 @@
|
||||||
{
|
|
||||||
// Use IntelliSense to learn about possible attributes.
|
|
||||||
// Hover to view descriptions of existing attributes.
|
|
||||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
||||||
"version": "0.2.0",
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"type": "node",
|
|
||||||
"request": "launch",
|
|
||||||
"name": "Debug Nest Framework",
|
|
||||||
"runtimeExecutable": "npm",
|
|
||||||
"runtimeArgs": ["run", "start:debug", "--", "--inspect-brk"],
|
|
||||||
"autoAttachChildProcesses": true,
|
|
||||||
"restart": true,
|
|
||||||
"sourceMaps": true,
|
|
||||||
"stopOnEntry": false,
|
|
||||||
"console": "integratedTerminal"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -28,18 +28,19 @@ export class SeasonPeriodHolidayHandler
|
||||||
holidayDate.creator_name = event.data.data.creator_name;
|
holidayDate.creator_name = event.data.data.creator_name;
|
||||||
holidayDate.updated_at = event.data.data.updated_at;
|
holidayDate.updated_at = event.data.data.updated_at;
|
||||||
holidayDate.season_type = event.data.data.season_type;
|
holidayDate.season_type = event.data.data.season_type;
|
||||||
holidayDate.item_rates = event.data.data.item_rates.map((item) => {
|
holidayDate.item_rates = event.data.data.item_rates;
|
||||||
delete item['id'];
|
|
||||||
|
|
||||||
return item;
|
|
||||||
});
|
|
||||||
holidayDate.priority = 1;
|
holidayDate.priority = 1;
|
||||||
|
|
||||||
await this.dataService.createBatch(queryRunner, SeasonPeriodModel, [
|
holidayDates.push(holidayDate);
|
||||||
holidayDate,
|
|
||||||
]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// create batch
|
||||||
|
await this.dataService.createBatch(
|
||||||
|
queryRunner,
|
||||||
|
SeasonPeriodModel,
|
||||||
|
holidayDates,
|
||||||
|
);
|
||||||
|
|
||||||
// delete data
|
// delete data
|
||||||
await this.dataService.deleteById(
|
await this.dataService.deleteById(
|
||||||
queryRunner,
|
queryRunner,
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
import { Injectable } from '@nestjs/common';
|
import {
|
||||||
|
HttpStatus,
|
||||||
|
Injectable,
|
||||||
|
UnprocessableEntityException,
|
||||||
|
} from '@nestjs/common';
|
||||||
import {
|
import {
|
||||||
EventTopics,
|
EventTopics,
|
||||||
columnUniques,
|
columnUniques,
|
||||||
|
|
|
@ -6,6 +6,7 @@ import {
|
||||||
Patch,
|
Patch,
|
||||||
Post,
|
Post,
|
||||||
Put,
|
Put,
|
||||||
|
Get,
|
||||||
} from '@nestjs/common';
|
} from '@nestjs/common';
|
||||||
import { SeasonPeriodDataOrchestrator } from '../domain/usecases/season-period-data.orchestrator';
|
import { SeasonPeriodDataOrchestrator } from '../domain/usecases/season-period-data.orchestrator';
|
||||||
import { SeasonPeriodDto } from './dto/season-period.dto';
|
import { SeasonPeriodDto } from './dto/season-period.dto';
|
||||||
|
|
|
@ -10,7 +10,7 @@ import { TransactionModel } from '../../../data/models/transaction.model';
|
||||||
import { mappingRevertTransaction } from '../managers/helpers/mapping-transaction.helper';
|
import { mappingRevertTransaction } from '../managers/helpers/mapping-transaction.helper';
|
||||||
import { apm } from '../../../../../../core/apm';
|
import { apm } from '../../../../../../core/apm';
|
||||||
|
|
||||||
// @EventsHandler(ChangeDocEvent)
|
@EventsHandler(ChangeDocEvent)
|
||||||
export class PosTransactionHandler implements IEventHandler<ChangeDocEvent> {
|
export class PosTransactionHandler implements IEventHandler<ChangeDocEvent> {
|
||||||
constructor(
|
constructor(
|
||||||
private dataService: TransactionDataService,
|
private dataService: TransactionDataService,
|
||||||
|
|
Loading…
Reference in New Issue