Add all server checks to CI - fix lint issues

CI will now run linter, type-checks and tests for the server.

All the lint issues have been fixed.
This commit is contained in:
Jaime Baez 2022-09-08 11:07:27 +02:00
parent 836b174d33
commit 1f4ba73da7
19 changed files with 47 additions and 70 deletions

View file

@ -21,7 +21,6 @@ import axios from 'axios';
import { Job } from 'bull';
import exifr from 'exifr';
import ffmpeg from 'fluent-ffmpeg';
import { readFile } from 'fs/promises';
import path from 'path';
import sharp from 'sharp';
import { Repository } from 'typeorm/repository/Repository';
@ -330,7 +329,7 @@ export class MetadataExtractionProcessor {
}
if (stream.r_frame_rate) {
let fpsParts = stream.r_frame_rate.split('/');
const fpsParts = stream.r_frame_rate.split('/');
if (fpsParts.length === 2) {
newExif.fps = Math.round(parseInt(fpsParts[0]) / parseInt(fpsParts[1]));