Skip to content

Commit

Permalink
feat: 루트 최근 포커 결과 HTML로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
w8385 committed Jan 25, 2024
1 parent 28c728a commit 2f90763
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/app.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ export class AppService {
result: '존재하지 않는 포커입니다.',
};
}
return await this.pokerService.calc(recentPokerId);

const result = await this.pokerService.calc(recentPokerId);
let resultHtml = `
<h1>${result.name} 포커 결과</h1>
<h3>${result.createdAt}</h3>`;
for (const user in result.result) {
resultHtml += `<h2>${user}</h2>`;
resultHtml += `<p>${result.result[user]}</p>`;
}

return resultHtml;
}
}

0 comments on commit 2f90763

Please sign in to comment.