chore: lint

This commit is contained in:
izzy
2025-11-24 17:09:13 +00:00
parent 0f145a5b52
commit 95d9bcb3f1
3 changed files with 4 additions and 4 deletions

View File

@@ -63,7 +63,7 @@ describe(MaintenanceWorkerService.name, () => {
describe.skip('detectMediaLocation');
describe('setStatus', () => {
it('should broadcast status', async () => {
it('should broadcast status', () => {
maintenanceEphemeralStateRepositoryMock.getPublicStatus.mockReturnValue({
action: MaintenanceAction.Start,
error: 'mock',
@@ -446,7 +446,7 @@ describe(MaintenanceWorkerService.name, () => {
it('should write file', async () => {
await sut.uploadBackup({ originalname: 'path.sql.gz' } as never);
expect(mocks.storage.overwriteFile).toBeCalledWith('/data/backups/uploaded-path.sql.gz', undefined);
expect(mocks.storage.overwriteFile).toBeCalledWith('/data/backups/uploaded-path.sql.gz');
});
});

View File

@@ -224,7 +224,7 @@ describe(MaintenanceService.name, () => {
it('should write file', async () => {
await sut.uploadBackup({ originalname: 'path.sql.gz' } as never);
expect(mocks.storage.overwriteFile).toBeCalledWith('/data/backups/uploaded-path.sql.gz', undefined);
expect(mocks.storage.overwriteFile).toBeCalledWith('/data/backups/uploaded-path.sql.gz');
});
});

View File

@@ -100,7 +100,7 @@ export class FilenameParamDto {
@IsNotEmpty()
@IsString()
@ApiProperty({ format: 'string' })
@Matches(/^[a-zA-Z0-9_\-\.]+$/, {
@Matches(/^[a-zA-Z0-9_\-.]+$/, {
message: 'Filename contains invalid characters',
})
filename!: string;