Add id to mail

This commit is contained in:
Admin 2026-02-11 07:56:53 +07:00
parent 0dd8591573
commit c32b7545c2
2 changed files with 8 additions and 0 deletions

View File

@ -282,6 +282,7 @@ export class MailsService {
return `
<div style="${cardStyle}">
<h2 style="${headerStyle('#2c7a7b')}"> Auto Bid Started</h2>
${renderRow('ID', String(bid.id))}
${renderRow('Title', title)}
${renderRow('Max', max)}
${renderRow('End time', endTime)}
@ -300,6 +301,7 @@ export class MailsService {
return `
<div style="${cardStyle}">
<h2 style="${headerStyle('#718096')}"> Auction Ended</h2>
${renderRow('ID', String(bid.id))}
${renderRow('Title', title)}
${renderRow('End time', endTime)}
${renderRow('Final price', competitor)}
@ -312,6 +314,7 @@ export class MailsService {
return `
<div style="${cardStyle}">
<h2 style="${headerStyle('#dd6b20')}"> Outbid (${timeExtended})</h2>
${renderRow('ID', String(bid.id))}
${renderRow('Title', title)}
${renderRow('Competitor', competitor)}
${renderRow('Max', max)}
@ -326,6 +329,7 @@ export class MailsService {
return `
<div style="${cardStyle}">
<h2 style="${headerStyle('#e53e3e')}">🛑 Auction Canceled (${timeExtended})</h2>
${renderRow('ID', String(bid.id))}
${renderRow('Title', title)}
${renderRow('Competitor', competitor)}
${renderRow('Max', max)}
@ -341,6 +345,7 @@ export class MailsService {
return `
<div style="${cardStyle}">
<h2 style="${headerStyle('#2b6cb0')}">🎉 You Won!</h2>
${renderRow('ID', String(bid.id))}
${renderRow('Title', title)}
${renderRow('Price won', `$${bid.current_price}`)}
${renderRow('Max', max)}
@ -352,6 +357,7 @@ export class MailsService {
return `
<div style="${cardStyle}">
<h2 style="${headerStyle('#718096')}"> Unknown Status</h2>
${renderRow('ID', String(bid.id))}
${renderRow('Title', title)}
${renderRow('From', from)}
</div>

View File

@ -292,7 +292,9 @@ export class AllbidsProductBid extends ProductBid {
console.log(
`⚠️ [${this.id}] Outbid detected, calling outBid function.`,
);
// await outBid(this.id);
await this.update();
return;
}