We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02f83ca commit 38c5683Copy full SHA for 38c5683
src/components/Firewall/Firewall.ts
@@ -46,7 +46,11 @@ export const getFirewallBannedEntryId = async (ip: string): Promise<string> => {
46
},
47
});
48
49
- return result[0].id;
+ if(apiker.debug){
50
+ console.log("getFirewallBannedEntryId", result);
51
+ }
52
+
53
+ return result?.[0]?.id || "";
54
};
55
56
export const firewallUnbanIP = async (ip: string) => {
@@ -61,6 +65,9 @@ export const firewallUnbanIP = async (ip: string) => {
61
65
const entryId = await getFirewallBannedEntryId(ip);
62
66
63
67
if(!entryId) {
68
69
+ console.log("firewallUnbanIP", "No entry found for ip", ip);
70
64
71
return;
72
}
73
0 commit comments