diff --git a/src/deny-list/ip-deny-list.ts b/src/deny-list/ip-deny-list.ts index 8a15f51..dd03f3a 100644 --- a/src/deny-list/ip-deny-list.ts +++ b/src/deny-list/ip-deny-list.ts @@ -83,8 +83,8 @@ export const updateIpDenyList = async ( // delete the old ip deny list and create new one transaction.del(ipDenyList) - // @ts-expect-error ...allIps type works but gets type error - transaction.sadd(ipDenyList, ...allIps) + + transaction.sadd(ipDenyList, allIps.at(0), ...allIps.slice(1)) // make all deny list and ip deny list disjoint by removing duplicate // ones from ip deny list