mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-24 16:03:02 +00:00
fix(photos): drop the dead initialiser eslint flagged in the exif reader
This commit is contained in:
@@ -79,7 +79,7 @@ export class PhotoCaptureBackfillService {
|
||||
if (abs !== UPLOADS_ROOT && !abs.startsWith(UPLOADS_ROOT + path.sep)) return null;
|
||||
|
||||
type Exif = { DateTimeOriginal?: Date; CreateDate?: Date; latitude?: number; longitude?: number };
|
||||
let parsed: Exif | null = null;
|
||||
let parsed: Exif | null;
|
||||
try {
|
||||
parsed = (await exifr.parse(abs, {
|
||||
pick: ['DateTimeOriginal', 'CreateDate', 'latitude', 'longitude'],
|
||||
|
||||
Reference in New Issue
Block a user