renterd icon indicating copy to clipboard operation
renterd copied to clipboard

Fix scan error when fetching archived contracts

Open peterjan opened this issue 4 months ago • 0 comments

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

peterjan avatar Sep 27 '24 11:09 peterjan