diff --git a/apps/drec-api/migrations/1733820066628-file-processing-type.ts b/apps/drec-api/migrations/1733820066628-file-processing-type.ts index 7c37732c4..36252aca9 100644 --- a/apps/drec-api/migrations/1733820066628-file-processing-type.ts +++ b/apps/drec-api/migrations/1733820066628-file-processing-type.ts @@ -1,8 +1,7 @@ -import {MigrationInterface, QueryRunner, Table} from "typeorm"; +import { MigrationInterface, QueryRunner, Table } from 'typeorm'; export class fileProcessingType1733820066628 implements MigrationInterface { - - public async up(queryRunner: QueryRunner): Promise { + public async up(queryRunner: QueryRunner): Promise { await queryRunner.createTable( new Table({ name: 'file_processing_jobs', @@ -29,7 +28,7 @@ export class fileProcessingType1733820066628 implements MigrationInterface { { name: 'status', type: 'enum', - enum: ['Pending', 'InProgress', 'Completed', 'Failed'], + enum: ['Pending', 'InProgress', 'Completed', 'Failed'], }, { name: 'type', @@ -54,5 +53,5 @@ export class fileProcessingType1733820066628 implements MigrationInterface { public async down(queryRunner: QueryRunner): Promise { await queryRunner.dropTable('file_processing_jobs'); - } + } } diff --git a/apps/drec-api/src/pods/file/file-processing.entity.ts b/apps/drec-api/src/pods/file/file-processing.entity.ts index 5ef50e3f3..f34735e9b 100755 --- a/apps/drec-api/src/pods/file/file-processing.entity.ts +++ b/apps/drec-api/src/pods/file/file-processing.entity.ts @@ -11,8 +11,8 @@ export enum FileProcessingStatus { } export enum FileProcessingType { - AddMeterRead = "MeterRead", - DeviceCreation = "DeviceCreation", + AddMeterRead = 'MeterRead', + DeviceCreation = 'DeviceCreation', } @Entity('file_processing_jobs') diff --git a/apps/drec-api/src/pods/reads/reads.controller.ts b/apps/drec-api/src/pods/reads/reads.controller.ts index 3fe3d455d..6b2add629 100644 --- a/apps/drec-api/src/pods/reads/reads.controller.ts +++ b/apps/drec-api/src/pods/reads/reads.controller.ts @@ -18,7 +18,6 @@ import { HttpException, BadRequestException, Logger, - UnauthorizedException, UseInterceptors, UploadedFile, } from '@nestjs/common'; diff --git a/apps/drec-api/src/pods/reads/reads.service.ts b/apps/drec-api/src/pods/reads/reads.service.ts index 617ecc15d..864cb6967 100755 --- a/apps/drec-api/src/pods/reads/reads.service.ts +++ b/apps/drec-api/src/pods/reads/reads.service.ts @@ -37,14 +37,11 @@ import { AggregateMeterRead } from './aggregate_readvalue.entity'; import { flattenDeep, values, groupBy, mean, sum } from 'lodash'; import { NewIntmediateMeterReadDTO } from './dto/intermediate_meter_read.dto'; import { IAggregateintermediate, ILoggedInUser } from '../../models'; -import { InjectRepository } from '@nestjs/typeorm'; import { DeltaFirstRead } from './delta_firstread.entity'; -import { flattenDeep, groupBy, mean, sum, values } from 'lodash'; import { DateTime } from 'luxon'; import { convertToWh } from 'src/utils/convert-to-power-units'; import { GenerationReadingStoredEvent } from '../../events/GenerationReadingStored.event'; import { writePoints } from '../../lib/influx-db'; -import { IAggregateintermediate } from '../../models'; import { HistoryNextInssuanceStatus } from '../../utils/enums/history_next_issuance.enum'; import { getFormattedOffSetFromOffsetAsJson, @@ -52,13 +49,9 @@ import { getLocalTimeZoneFromDevice, getOffsetFromTimeZoneName, } from '../../utils/localTimeDetailsForDevice'; -import { DeviceGroupService } from '../device-group/device-group.service'; import { DeviceService } from '../device/device.service'; -import { DeviceDTO } from '../device/dto'; import { OrganizationService } from '../organization/organization.service'; -import { AggregateMeterRead } from './aggregate_readvalue.entity'; import { BASE_READ_SERVICE } from './const'; -import { DeltaFirstRead } from './delta_firstread.entity'; import { FilterNoOffLimit, AccumulationType, @@ -66,8 +59,6 @@ import { import { FileService } from '../file'; import { InjectQueue } from '@nestjs/bull'; import { Queue } from 'bull'; -import { NewIntmediateMeterReadDTO } from './dto/intermediate_meter_read.dto'; -import { HistoryIntermediate_MeterRead } from './history_intermideate_meterread.entity'; export type TUserBaseEntity = ExtendedBaseEntity & IAggregateintermediate;