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:
parent
d116234523
commit
a8e723d722
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue