feat(support-chat): persist conversations and analytics
Deploy Canina / deploy (push) Failing after 28s

This commit is contained in:
devops committed 2026-10-15 07:28:02 +00:00
1 parent 59ab154d0f
commit def903734f
7 files changed
+97 -10

No files matched your search

@@ -1,4 +1,4 @@
import { Body, Controller, Post, Req, UseGuards, Header } from '@nestjs/common';
import { Body, Controller, Get, Param, Post, Req, UseGuards, Header } from '@nestjs/common';
import { Throttle } from '@nestjs/throttler';
import { SupportChatService } from './support-chat.service';
import { SupportChatDto } from './support-chat.dto';
@@ -6,6 +6,9 @@ import { OptionalCustomerJwtGuard } from './support-chat.guard';
@Controller('support-chat')
export class SupportChatController {
constructor(private readonly service: SupportChatService) {}
@Get(':id') @UseGuards(OptionalCustomerJwtGuard)
@Header('Cache-Control', 'no-store')
history(@Param('id') id: string, @Req() req: { user?: { id: string } }) { return this.service.history(id, req.user); }
@Post('ask') @UseGuards(OptionalCustomerJwtGuard)
@Throttle({ default: { limit: 10, ttl: 60000 } })
@Header('Cache-Control', 'no-store')