Skip to content

Commit

Permalink
fix: changed public to private readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
Savio629 committed Sep 25, 2024
1 parent bf99b95 commit 903b640
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/common/src/services/file-upload.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ import { ConfigService } from '@nestjs/config';

@Injectable()
export class FileUploadService {
public storage: any;
private readonly storage: any;
private readonly storageMode: string;
private readonly useSSL: boolean;
public storageEndpoint: string;
private readonly storageEndpoint: string;
private readonly storagePort: number;
private logger: Logger;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ describe('FileUploadService', () => {
(service as any).storageEndpoint = 'uploads';

const destination = 'local-destination';
const mockUploadsDir = path.join(service.storageEndpoint, destination);
const mockUploadsDir = path.join(service['storageEndpoint'], destination);

const mkdirSpy = jest.spyOn(fs, 'mkdirSync').mockImplementation(() => '');

Expand Down

0 comments on commit 903b640

Please sign in to comment.