Compare commits

...

7 Commits

Author SHA1 Message Date
shancheas e8baaa12d2 Merge branch 'development' of ssh://git.eigen.co.id:2222/eigen/pos-be into development 2024-08-06 16:06:43 +07:00
shancheas 6ca74ad6f7 fix: lint 2024-08-06 16:06:30 +07:00
firmanr 955f00cc9d Merge pull request 'feat(SPG-793): fix time at report log' (#54) from fix/bug-firman into development
continuous-integration/drone/tag Build is passing Details
Reviewed-on: #54
2024-08-06 09:05:27 +00:00
shancheas 61d8f56385 Merge branch 'development' of ssh://git.eigen.co.id:2222/eigen/pos-be into development
continuous-integration/drone/tag Build was killed Details
2024-08-06 16:04:13 +07:00
shancheas 2a42d85814 chore: add vscode debug configuration 2024-08-06 16:03:55 +07:00
shancheas bacdb1773b fix: item rates not generated when create period season 2024-08-06 16:03:42 +07:00
firmanr 33014394d1 Merge pull request 'feat(SPG-773): set item name to unique' (#53) from fix/bug-firman into development
continuous-integration/drone/tag Build is passing Details
Reviewed-on: #53
2024-08-06 05:48:50 +00:00
5 changed files with 30 additions and 16 deletions

20
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,20 @@
{
// 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"
}
]
}

View File

@ -28,19 +28,18 @@ export class SeasonPeriodHolidayHandler
holidayDate.creator_name = event.data.data.creator_name;
holidayDate.updated_at = event.data.data.updated_at;
holidayDate.season_type = event.data.data.season_type;
holidayDate.item_rates = event.data.data.item_rates;
holidayDate.item_rates = event.data.data.item_rates.map((item) => {
delete item['id'];
return item;
});
holidayDate.priority = 1;
holidayDates.push(holidayDate);
await this.dataService.createBatch(queryRunner, SeasonPeriodModel, [
holidayDate,
]);
}
// create batch
await this.dataService.createBatch(
queryRunner,
SeasonPeriodModel,
holidayDates,
);
// delete data
await this.dataService.deleteById(
queryRunner,

View File

@ -1,8 +1,4 @@
import {
HttpStatus,
Injectable,
UnprocessableEntityException,
} from '@nestjs/common';
import { Injectable } from '@nestjs/common';
import {
EventTopics,
columnUniques,

View File

@ -6,7 +6,6 @@ import {
Patch,
Post,
Put,
Get,
} from '@nestjs/common';
import { SeasonPeriodDataOrchestrator } from '../domain/usecases/season-period-data.orchestrator';
import { SeasonPeriodDto } from './dto/season-period.dto';

View File

@ -10,7 +10,7 @@ import { TransactionModel } from '../../../data/models/transaction.model';
import { mappingRevertTransaction } from '../managers/helpers/mapping-transaction.helper';
import { apm } from '../../../../../../core/apm';
@EventsHandler(ChangeDocEvent)
// @EventsHandler(ChangeDocEvent)
export class PosTransactionHandler implements IEventHandler<ChangeDocEvent> {
constructor(
private dataService: TransactionDataService,