feat: fix alot of issues

This commit is contained in:
2026-10-08 00:25:30 +02:00
parent 8b1e38cb4d
commit e5580767a5
35 changed files with 127 additions and 615 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import * as crypto from 'crypto';
import { v4 as uuidv4 } from 'uuid';
import { PrismaService } from '../prisma/prisma.service';
import { AuditService } from '../audit/audit.service';
import { TOKEN_EXPIRY_DAYS, TOKEN_BYTE_LENGTH, TOKEN_PREFIX_LENGTH } from '@kooltab/shared';
import { TOKEN_EXPIRY_DAYS, TOKEN_BYTE_LENGTH, TOKEN_PREFIX_LENGTH } from '@kooltap/shared';
@Injectable()
export class AuthService {
+1 -1
View File
@@ -8,7 +8,7 @@ import { v4 as uuidv4 } from 'uuid';
import { PrismaService } from '../prisma/prisma.service';
import { AuditService } from '../audit/audit.service';
import { CreateCommandDto } from './dto/create-command.dto';
import { COMMAND_EXPIRY_HOURS, DEVICE_OFFLINE_THRESHOLD_MS } from '@kooltab/shared';
import { COMMAND_EXPIRY_HOURS, DEVICE_OFFLINE_THRESHOLD_MS } from '@kooltap/shared';
@Injectable()
export class CommandsService {
+1 -1
View File
@@ -40,7 +40,7 @@ async function bootstrap() {
app.useGlobalInterceptors(new LoggingInterceptor());
const config = new DocumentBuilder()
.setTitle('KoolTab Remote Tab Control API')
.setTitle('KoolTap Remote Tab Control API')
.setDescription('API for managing remote tab control in venues')
.setVersion('1.0')
.addBearerAuth()
+3 -3
View File
@@ -21,7 +21,7 @@ export class RemindersService {
constructor(private prisma: PrismaService) {
this.resendApiKey = process.env.RESEND_API_KEY || '';
this.fromEmail = process.env.RESEND_FROM_EMAIL || 'KoolTab <onboarding@resend.dev>';
this.fromEmail = process.env.RESEND_FROM_EMAIL || 'KoolTap <onboarding@resend.dev>';
}
async listCandidates(venueId: string) {
@@ -182,9 +182,9 @@ export class RemindersService {
body: JSON.stringify({
from: this.fromEmail,
to: tab.email,
subject: `Test email from KoolTab`,
subject: `Test email from KoolTap`,
html: `<p>Hi ${escapeHtml(tab.customerName)},</p>
<p>This is a test email from KoolTab to verify that email reminders are working correctly.</p>
<p>This is a test email from KoolTap to verify that email reminders are working correctly.</p>
<p>If you received this, the email configuration is working!</p>
<hr>
<p style="color: #888; font-size: 12px;">This is a test — no action needed.</p>`,