Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
value(): Promise {
return getService(this.dataSource);
}
}
value(): Promise {
return getService(this.dataSource);
}
}
async value(): Promise {
const grpcService = await getService(this.dataSource);
const service: RecommenderService = {
getProductRecommendations: async (userId: string) => {
const res = await grpcService.recommend({userId});
return res.products;
},
};
return service;
}
}