mirror of
https://github.com/immich-app/immich.git
synced 2025-01-01 08:31:59 +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 { Logger } from '@nestjs/common';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import { SmartInfoEntity } from '@app/database/entities/smart-info.entity';
|
import { SmartInfoEntity } from '@app/database/entities/smart-info.entity';
|
||||||
|
import { ConfigService } from '@nestjs/config';
|
||||||
|
|
||||||
@Processor('metadata-extraction-queue')
|
@Processor('metadata-extraction-queue')
|
||||||
export class MetadataExtractionProcessor {
|
export class MetadataExtractionProcessor {
|
||||||
|
@ -26,7 +27,7 @@ export class MetadataExtractionProcessor {
|
||||||
@InjectRepository(SmartInfoEntity)
|
@InjectRepository(SmartInfoEntity)
|
||||||
private smartInfoRepository: Repository<SmartInfoEntity>,
|
private smartInfoRepository: Repository<SmartInfoEntity>,
|
||||||
) {
|
) {
|
||||||
if (process.env.ENABLE_MAPBOX) {
|
if (process.env.ENABLE_MAPBOX == 'true') {
|
||||||
this.geocodingClient = mapboxGeocoding({
|
this.geocodingClient = mapboxGeocoding({
|
||||||
accessToken: process.env.MAPBOX_KEY,
|
accessToken: process.env.MAPBOX_KEY,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue