diff --git a/lib/core/src/Cardano/Pool/DB/Sqlite.hs b/lib/core/src/Cardano/Pool/DB/Sqlite.hs index 70e96603127..456c0300a53 100644 --- a/lib/core/src/Cardano/Pool/DB/Sqlite.hs +++ b/lib/core/src/Cardano/Pool/DB/Sqlite.hs @@ -273,9 +273,9 @@ newDBLayer trace fp = do , "FROM", metadata , ")" , "AND" - , metadataUrl, "NOT", "IN" -- Recently failed urls + , metadataHash, "NOT", "IN" -- Recently failed urls , "(" - , "SELECT", metadataUrl + , "SELECT", metadataHash , "FROM", fetchAttempts , "WHERE", retryAfter, ">=", "datetime('now')" , ")"