mirror of
https://github.com/immich-app/immich.git
synced 2024-12-29 15:11:58 +00:00
Fixed incorrect microservices URLs after updating dockerfiles (#159)
This commit is contained in:
parent
bb89fa4aab
commit
c5adbea6e1
4 changed files with 21 additions and 15 deletions
|
@ -1,5 +1,6 @@
|
|||
import { Body, Controller, Post } from '@nestjs/common';
|
||||
import { ObjectDetectionService } from './object-detection.service';
|
||||
import { Logger } from '@nestjs/common';
|
||||
|
||||
@Controller('object-detection')
|
||||
export class ObjectDetectionController {
|
||||
|
|
|
@ -115,7 +115,7 @@ export class BackgroundTaskProcessor {
|
|||
async tagImage(job) {
|
||||
const { thumbnailPath, asset }: { thumbnailPath: string; asset: AssetEntity } = job.data;
|
||||
|
||||
const res = await axios.post('http://immich_microservices:3001/image-classifier/tagImage', {
|
||||
const res = await axios.post('http://immich-microservices:3001/image-classifier/tagImage', {
|
||||
thumbnailPath: thumbnailPath,
|
||||
});
|
||||
|
||||
|
@ -132,9 +132,10 @@ export class BackgroundTaskProcessor {
|
|||
|
||||
@Process('detect-object')
|
||||
async detectObject(job) {
|
||||
try {
|
||||
const { thumbnailPath, asset }: { thumbnailPath: string; asset: AssetEntity } = job.data;
|
||||
|
||||
const res = await axios.post('http://immich_microservices:3001/object-detection/detectObject', {
|
||||
const res = await axios.post('http://immich-microservices:3001/object-detection/detectObject', {
|
||||
thumbnailPath: thumbnailPath,
|
||||
});
|
||||
|
||||
|
@ -146,5 +147,9 @@ export class BackgroundTaskProcessor {
|
|||
conflictPaths: ['assetId'],
|
||||
});
|
||||
}
|
||||
} catch (error) {
|
||||
Logger.error(`Failed to trigger object detection pipe line ${error.toString()}`)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue