feat: update components and hooks to use get_untracked for improved performance

This commit is contained in:
asepharyana
2026-07-04 03:03:36 +07:00
parent 8166023f91
commit 27e929580e
85 changed files with 1703 additions and 1843 deletions
@@ -67,7 +67,9 @@ export class RecordingsService {
const items = rows.slice(0, limit) as unknown as RecordingRow[];
const hasMore = rows.length > limit;
const nextCursor = hasMore ? String(items[items.length - 1]!.created_at) : null;
const nextCursor = hasMore
? String(items[items.length - 1]!.created_at)
: null;
return { items, nextCursor, hasMore };
}
@@ -2,7 +2,11 @@ import { createChildLogger } from "@bete/shared/logger";
import type { Request, Response } from "express";
import { asyncHandler } from "../../shared/middlewares/index.js";
import { publishCommandNoReply } from "../../shared/redis/index.js";
import { connectVoice, disconnectVoice, getVoiceStatus } from "./voice.service.js";
import {
connectVoice,
disconnectVoice,
getVoiceStatus,
} from "./voice.service.js";
const logger = createChildLogger("voice.controller");
@@ -166,4 +166,3 @@ export async function disconnectVoice(): Promise<VoiceStatus> {
"disconnectVoice",
);
}