Add getAddActivityPrePopulate handler and implement prepopulate data retrieval
- Introduced a new handler for adding activity prepopulation. - Enhanced the PrePopulateService to fetch all necessary prepopulate data for the new activity. - Updated the updateBankDetails handler to correctly inject host ID. - Improved user data retrieval in HostService to include additional fields. - Added validation for host ID in showSuggestionToAM handler.
This commit is contained in:
@@ -26,6 +26,13 @@ export const handler = safeHandler(async (
|
||||
|
||||
const hostXid = Number(event.pathParameters?.hostXid)
|
||||
|
||||
if (!hostXid) {
|
||||
throw new ApiError(
|
||||
400,
|
||||
'Host ID is required in path parameters.',
|
||||
);
|
||||
}
|
||||
|
||||
// Get suggestions using service
|
||||
const suggestions = await minglarService.getSuggestionsForAM(hostXid);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user