Returning the promise from $transaction