Skip to content

Commit

Permalink
fix bug of concat
Browse files Browse the repository at this point in the history
  • Loading branch information
bahram1249 committed May 11, 2024
1 parent 54a1a54 commit cba5999
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions apps/e-commerce/src/admin/courier/courier.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ export class CourierService {
'username',
'phoneNumber',
[
Sequelize.literal("user.firstname + ' ' + user.lastname"),
Sequelize.fn(
'CONCAT',
Sequelize.col('user.firstname'),
' ',
Sequelize.col('user.lastname'),
),
'fullName',
],
],
Expand Down Expand Up @@ -87,7 +92,12 @@ export class CourierService {
'username',
'phoneNumber',
[
Sequelize.literal("user.firstname + ' ' + user.lastname"),
Sequelize.fn(
'CONCAT',
Sequelize.col('user.firstname'),
' ',
Sequelize.col('user.lastname'),
),
'fullName',
],
],
Expand Down

0 comments on commit cba5999

Please sign in to comment.