dev add stats api
Test Workflow / test (push) Successful in 3s

This commit is contained in:
vladp
2026-02-05 20:21:27 +07:00
parent df1fd89c29
commit 511da8321b
@@ -58,13 +58,13 @@ public class ImageFoundRequestHandler implements RequestHandler {
//TODO uncommited when add billing
// GoogleVisionSearchResponse googleVisionSearchResponse = googleVisionSearchService.searchByFileEntity(fileId);
// String yandexReverseSearchResponse = yandexSearchService.searchReverseByPublicUrl(fileEntity);
String yandexReverseSearchResponse = yandexSearchService.searchReverseByPublicUrl(fileEntity);
tariffInfoService.writeOffTokens(fileEntity.getUserId(), TariffConstants.TOKEN_VALUE_FOR_SEARCH);
checkCounterService.incrementCheckCount(fileEntity.getUserId(), fileEntity.getMimeType());
return new BaseResponse(request.getMsgId(), MessageCode.SUCCESS.getCode(),
MessageCode.SUCCESS.getDescription()," mapper.mapToYandexResponse(yandexReverseSearchResponse)");
MessageCode.SUCCESS.getDescription(),mapper.mapToYandexResponse(yandexReverseSearchResponse));
}
}