Skip to content

Commit c07f7fb

Browse files
committed
fix: update property access in spamAdv function from 'data' to 'result'
1 parent 1e2d29d commit c07f7fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/toram/adv1.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const spamAdv = async (sock, chatId, msg, text) => {
3838
const jsonResponse = await response.json();
3939

4040
// Struktur: { status, success, data: { ... } }
41-
const result = jsonResponse.data;
41+
const result = jsonResponse.result;
4242
console.log(result);
4343
if (!result || !jsonResponse?.success) {
4444
return await sock.sendMessage(

0 commit comments

Comments
 (0)