Change writeCheckpoint to return promise
Remove superfluous Promise from getDiffs