Commit 523f0b2c authored by Luke Champine's avatar Luke Champine

update cachedRevision after renew

parent d5629e23
......@@ -180,6 +180,9 @@ func (c *Contractor) managedRenewContracts() error {
c.contracts[contract.ID] = contract
// add a mapping from old->new contract
c.renewedIDs[oldID] = contract.ID
// move the cachedRevision entry to the new ID
c.cachedRevisions[contract.ID] = c.cachedRevisions[oldID]
delete(c.cachedRevisions, oldID)
err = c.saveSync()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment