Skip to content

Commit 8157ffc

Browse files
committed
feat: update toram adv1 plugin to handle json response data without null check
1 parent 79bc09b commit 8157ffc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plugins/toram/adv1.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ 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 ?? null;
42-
41+
const result = jsonResponse?.data;
42+
console.log(result);
4343
if (!result || !jsonResponse?.success) {
4444
return await sock.sendMessage(
4545
chatId,

0 commit comments

Comments
 (0)