mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
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:
@@ -18,7 +18,7 @@ export class GenerateChecksumProcessor {
|
||||
@Process()
|
||||
async generateChecksum() {
|
||||
let hasNext = true;
|
||||
let pageSize = 200;
|
||||
const pageSize = 200;
|
||||
|
||||
while (hasNext) {
|
||||
const assets = await this.assetRepository.find({
|
||||
|
||||
@@ -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]));
|
||||
|
||||
Reference in New Issue
Block a user