mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
poi for proxies
This commit is contained in:
@@ -10,5 +10,6 @@ export const TRACKING_POIS = {
|
|||||||
JOBS_TABLE_VIEW: 'JOBS_TABLE_VIEW',
|
JOBS_TABLE_VIEW: 'JOBS_TABLE_VIEW',
|
||||||
LISTING_TABLE_VIEW: 'LISTING_TABLE_VIEW',
|
LISTING_TABLE_VIEW: 'LISTING_TABLE_VIEW',
|
||||||
BASE_URL_SETTING: 'BASE_URL_SETTING',
|
BASE_URL_SETTING: 'BASE_URL_SETTING',
|
||||||
|
SET_PROXY_SETTING: 'SET_PROXY_SETTING',
|
||||||
DETECTED_AS_BOT: 'DETECTED_AS_BOT',
|
DETECTED_AS_BOT: 'DETECTED_AS_BOT',
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -44,6 +44,9 @@ export default async function generalSettingsPlugin(fastify) {
|
|||||||
if (appSettings.baseUrl != null) {
|
if (appSettings.baseUrl != null) {
|
||||||
await trackPoi(TRACKING_POIS.BASE_URL_SETTING);
|
await trackPoi(TRACKING_POIS.BASE_URL_SETTING);
|
||||||
}
|
}
|
||||||
|
if (appSettings.proxyUrl != null) {
|
||||||
|
await trackPoi(TRACKING_POIS.SET_PROXY_SETTING);
|
||||||
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
logger.error(err);
|
logger.error(err);
|
||||||
return reply.code(500).send({ error: 'Error while trying to write settings.' });
|
return reply.code(500).send({ error: 'Error while trying to write settings.' });
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "fredy",
|
"name": "fredy",
|
||||||
"version": "22.1.0",
|
"version": "22.1.1",
|
||||||
"description": "[F]ind [R]eal [E]states [d]amn eas[y].",
|
"description": "[F]ind [R]eal [E]states [d]amn eas[y].",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepare": "husky",
|
"prepare": "husky",
|
||||||
|
|||||||
Reference in New Issue
Block a user