mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-11-26 08:34:55 +00:00
fix: fix magic number lint issue
This commit is contained in:
@ -12,7 +12,7 @@ import { UploadDocumentRequestDto } from '../dtos/request';
|
|||||||
import { UploadResponseDto } from '../dtos/response';
|
import { UploadResponseDto } from '../dtos/response';
|
||||||
import { Document } from '../entities';
|
import { Document } from '../entities';
|
||||||
import { generateNewFileName } from '../utils';
|
import { generateNewFileName } from '../utils';
|
||||||
|
const TWO = 2;
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class OciService {
|
export class OciService {
|
||||||
private readonly ociClient: ObjectStorageClient;
|
private readonly ociClient: ObjectStorageClient;
|
||||||
@ -76,7 +76,7 @@ export class OciService {
|
|||||||
|
|
||||||
const bucketName = BUCKETS[document.documentType];
|
const bucketName = BUCKETS[document.documentType];
|
||||||
const objectName = document.name;
|
const objectName = document.name;
|
||||||
const expiration = moment().add(2, 'hours').toDate();
|
const expiration = moment().add(TWO, 'hours').toDate();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
this.logger.debug(`Generating pre-signed url for object ${objectName} in bucket ${bucketName}`);
|
this.logger.debug(`Generating pre-signed url for object ${objectName} in bucket ${bucketName}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user