Skip to content

Commit

Permalink
fix argument order for propEq (#52)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Sharpe <[email protected]>
  • Loading branch information
asharpe and Andrew Sharpe authored Jun 26, 2024
1 parent 9af8ffb commit fd96000
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/SpfInspector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const SpfInspector = (

// * Update ips
mechanisms
.filter(or(propEq("type", SpfType.ip4), propEq("type", SpfType.ip6)))
.filter(or(propEq(SpfType.ip4, "type"), propEq(SpfType.ip6, "type")))
.map(prop("value"))
.forEach((ip) => {
if (contains(ip, status.ips)) return;
Expand All @@ -97,7 +97,7 @@ const SpfInspector = (

// * Update includes
mechanisms
.filter(propEq("type", SpfType.include))
.filter(propEq(SpfType.include, "type"))
.map(prop("value"))
.forEach((include) => {
if (contains(include, status.includes)) return;
Expand All @@ -107,7 +107,7 @@ const SpfInspector = (

// * Update domain
mechanisms
.filter(propEq("type", SpfType.a))
.filter(propEq(SpfType.a, "type"))
.map(prop("value"))
.forEach((domain) => {
if (contains(domain, status.domains)) return;
Expand Down Expand Up @@ -135,7 +135,7 @@ const SpfInspector = (
[],
["detail", "mechanisms"],
record
).filter(propEq("type", SpfType.include));
).filter(propEq(SpfType.include, "type"));

// * We are a the lowest level
if (length(includes) === 0) return Promise.resolve(record);
Expand Down

0 comments on commit fd96000

Please sign in to comment.