refactoring GET /ccda api endpoint and resolving async bug