Forgot to resolve promise in local case