gg
Deploy Iddaai Backend / build-and-deploy (push) Successful in 32s

This commit is contained in:
2026-05-12 17:41:49 +03:00
parent 2b8dce665f
commit 2507678bc0
9 changed files with 19 additions and 35 deletions
@@ -78,7 +78,7 @@ export class ImageRendererService implements OnModuleInit {
this.drawMatchBlock(ctx, data, theme, homeImg, awayImg);
this.drawScoreBlock(ctx, data, theme);
this.drawPicks(ctx, data.topPicks, theme);
this.drawFooter(ctx, data, theme);
this.drawFooter(ctx, data);
const buffer = canvas.toBuffer("image/jpeg", { quality: 0.94 });
fs.writeFileSync(outPath, buffer);
@@ -460,7 +460,7 @@ export class ImageRendererService implements OnModuleInit {
});
}
private drawFooter(ctx: any, data: PredictionCardDto, theme: Theme) {
private drawFooter(ctx: any, data: PredictionCardDto) {
const riskText = `Risk: ${this.translateRisk(data.riskLevel)}`;
ctx.font = "900 34px Arial";
const riskW = Math.ceil(ctx.measureText(riskText).width + 72);