Compare commits

...

2 commits

Author SHA1 Message Date
8a0b75e9ea Fix merge conflicts
Some checks failed
Create and publish a Docker image / build-and-push-server (push) Has been skipped
Create and publish a Docker image / build-and-push-chart (push) Has been skipped
Create and publish a Docker image / detect what files changed (push) Failing after 32s
Create and publish a Docker image / build-and-push-CR (push) Has been skipped
Create and publish a Docker image / build-and-push-web (push) Has been skipped
2025-03-26 21:57:58 +03:00
6c07e348b3 feat(server): Removed lines and text when conflating changes 2025-03-26 13:36:11 +03:00
2 changed files with 1 additions and 10 deletions

View file

@ -81,7 +81,6 @@ fastify.addHook('onResponse', async (request, reply) => {
};
try {
<<<<<<< HEAD
await axios.post(
`https://${config['analytics']['plausible_domain']}/api/event/`,
event,
@ -91,15 +90,8 @@ fastify.addHook('onResponse', async (request, reply) => {
'Content-Type': 'application/json',
'User-Agent': userAgent,
},
=======
await axios.post(config['analytics']['plausible_api'], event, {
headers: {
Authorization: `Bearer ${config['analytics']['plausible_token']}`,
'Content-Type': 'application/json',
'User-Agent': userAgent,
>>>>>>> parent of da7134f (chore(server): Changed the name of the keys. Made it easier to change the domain)
},
});
);
} catch (error) {
fastify.log.error('Error sending event to Plausible:', error.message);
}

View file

@ -11,7 +11,6 @@ module.exports = async function metadata(fastify) {
);
return res.status(200).send({
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
first_date: first_date.rows[0]?.date
? first_date.rows[0]?.date
: 'None',