mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 15:06:02 +01:00
fix(callback/js): prevent args from being wrapped in an array when resolving the promise (#744)
This commit is contained in:
@@ -12,7 +12,7 @@ onNet(`__ox_cb_${cache.resource}`, (key: string, ...args: any) => {
|
||||
|
||||
delete pendingCallbacks[key];
|
||||
|
||||
resolve(args);
|
||||
resolve(...args);
|
||||
});
|
||||
|
||||
const eventTimers: Record<string, number> = {};
|
||||
|
||||
Reference in New Issue
Block a user