resolve mongoose promise