Skip to content

Commit ee85f85

Browse files
committed
fix imageUploads path
1 parent 9b5d734 commit ee85f85

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/shared/static/static.service.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ import { Injectable } from '@nestjs/common';
22
import path from 'path';
33
import { writeFileSync, readFileSync, unlink, mkdirSync, existsSync } from 'fs';
44
import { PNG, PNGWithMetadata } from 'pngjs';
5-
import { ConfigService } from '@nestjs/config';
65

76
@Injectable()
87
export class StaticService {
9-
constructor(private configService: ConfigService) {}
8+
constructor() {}
109

1110
saveImage(type: 'screenshot' | 'diff' | 'baseline', imageBuffer: Buffer): string {
1211
const imageName = `${Date.now()}.${type}.png`;
@@ -38,7 +37,7 @@ export class StaticService {
3837
}
3938

4039
private getImagePath(imageName: string): string {
41-
const dir = this.configService.get('imageUploads/');
40+
const dir = 'imageUploads/';
4241
this.ensureDirectoryExistence(dir);
4342
return path.resolve(dir, imageName);
4443
}

0 commit comments

Comments
 (0)