1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2024-12-29 15:11:58 +00:00

Fixed ENABLE_MAPBOX value is ignored (#223)

This commit is contained in:
Alex 2022-06-12 18:19:53 -05:00 committed by GitHub
parent d116234523
commit a8e723d722
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,6 +11,7 @@ import { readFile } from 'fs/promises';
import { Logger } from '@nestjs/common';
import axios from 'axios';
import { SmartInfoEntity } from '@app/database/entities/smart-info.entity';
import { ConfigService } from '@nestjs/config';
@Processor('metadata-extraction-queue')
export class MetadataExtractionProcessor {
@ -26,7 +27,7 @@ export class MetadataExtractionProcessor {
@InjectRepository(SmartInfoEntity)
private smartInfoRepository: Repository<SmartInfoEntity>,
) {
if (process.env.ENABLE_MAPBOX) {
if (process.env.ENABLE_MAPBOX == 'true') {
this.geocodingClient = mapboxGeocoding({
accessToken: process.env.MAPBOX_KEY,
});