fix(callback/js): match callback timeout to lua

This commit is contained in:
Linden
2024-10-06 03:28:28 +11:00
parent e61febf7de
commit cba4b85a29
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
import { cache } from '../cache'; import { cache } from '../cache';
const pendingCallbacks: Record<string, (...args: any[]) => void> = {}; const pendingCallbacks: Record<string, (...args: any[]) => void> = {};
const callbackTimeout = GetConvarInt('ox:callbackTimeout', 60000); const callbackTimeout = GetConvarInt('ox:callbackTimeout', 300000);
onNet(`__ox_cb_${cache.resource}`, (key: string, ...args: any) => { onNet(`__ox_cb_${cache.resource}`, (key: string, ...args: any) => {
const resolve = pendingCallbacks[key]; const resolve = pendingCallbacks[key];

View File

@@ -1,7 +1,7 @@
import { cache } from '../cache'; import { cache } from '../cache';
const pendingCallbacks: Record<string, (...args: any[]) => void> = {}; const pendingCallbacks: Record<string, (...args: any[]) => void> = {};
const callbackTimeout = GetConvarInt('ox:callbackTimeout', 60000); const callbackTimeout = GetConvarInt('ox:callbackTimeout', 300000);
onNet(`__ox_cb_${cache.resource}`, (key: string, ...args: any) => { onNet(`__ox_cb_${cache.resource}`, (key: string, ...args: any) => {
const resolve = pendingCallbacks[key]; const resolve = pendingCallbacks[key];