Skip to content

Commit

Permalink
fix: rm expect error
Browse files Browse the repository at this point in the history
  • Loading branch information
CahidArda committed Oct 21, 2024
1 parent 92a2268 commit 2cd2f3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/deny-list/ip-deny-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2cd2f3c

Please sign in to comment.