feat: update components and hooks to use get_untracked for improved performance
This commit is contained in:
@@ -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",
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user