renterd
renterd copied to clipboard
Fix scan error when fetching archived contracts
There's a scan error when fetching contracts using the new filter mode api.ContractFilterModeArchived
. It happens when the host_id
is NULL
which happens when we archive a contract (not when we renew it). Figured adding a small NullableInt64
type was the best course of action but open to alternatives.
Related https://github.com/SiaFoundation/renterd/issues/1545