fix(buffer): do not update created_at for profiles since its our partition key

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-03-06 11:07:09 +01:00
parent 164a18e931
commit 08b07e42fb
2 changed files with 3 additions and 10 deletions

View File

@@ -4,7 +4,7 @@ import type { FastifyPluginCallback } from 'fastify';
import { clientHook } from '@/hooks/client.hook';
import { isBotHook } from '@/hooks/is-bot.hook';
const trackRouter: FastifyPluginCallback = (fastify) => {
const trackRouter: FastifyPluginCallback = async (fastify) => {
fastify.addHook('preHandler', clientHook);
fastify.addHook('preHandler', isBotHook);