Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { UserService } from "./UserService";
- export class MessageService {
- constructor(private readonly userService: UserService){}
- async prepareMessage(text: string, userId: string) {
- const user = await this.userService.getUser(userId);
- return {
- to: user.email,
- title: `Hello ${user.name}`,
- body: text
- }
- }
- }
Add Comment
Please, Sign In to add comment