Q-based promises in Repository