change promise to be resolved on transaction commit