Skip to content

Commit

Permalink
fix(scheduler-utils): only return url on raw
Browse files Browse the repository at this point in the history
  • Loading branch information
TillaTheHun0 committed Dec 21, 2023
1 parent 931dd94 commit f8ccc17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scheduler-utils/src/raw.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function rawWith ({ loadScheduler, cache }) {
return (address) =>
cache.getByOwner(address)
.then((cached) => {
if (cached) return cached
if (cached) return { url: cached.url }
return loadScheduler(address)
.then((scheduler) =>
cache.setByOwner(address, scheduler.url, scheduler.ttl)
Expand Down

0 comments on commit f8ccc17

Please sign in to comment.