Skip to content

Commit

Permalink
fet: add lastname
Browse files Browse the repository at this point in the history
  • Loading branch information
dodyagung committed May 10, 2024
1 parent 520282c commit 957ec59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/sale/sale.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export class SaleService {
select: {
id: true,
first_name: true,
last_name: true,
phone: true,
posts: {
select: {
Expand Down
2 changes: 1 addition & 1 deletion src/sale/sale.update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class SaleUpdate {
`It's **${TODAY_LONG()}**. Want to join the sale? [Chat me!](tg://user?id=${this.configService.get<string>('TELEGRAM_SALE_BOT_TOKEN')!.split(':')[0]})\n\n`;

users.forEach((user) => {
let new_message = `💰 [${user.first_name}](tg://user?id=${user.id}) ${user.phone ? `(\`${user.phone}\`)` : ``}\n`;
let new_message = `💰 [${user.first_name} ${user.last_name}](tg://user?id=${user.id}) ${user.phone ? `(\`${user.phone}\`)` : ``}\n`;

user.posts.forEach((post, index) => {
if (index + 1 !== user.posts.length) {
Expand Down

0 comments on commit 957ec59

Please sign in to comment.