Browse Source

chore: Fix syntax for postgres

Michael Bromley 3 years ago
parent
commit
6c16fb37c1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/core/src/service/services/order.service.ts

+ 1 - 1
packages/core/src/service/services/order.service.ts

@@ -321,7 +321,7 @@ export class OrderService {
                 channelId: ctx.channelId,
                 ctx,
             })
-            .andWhere('order.state != "Draft"')
+            .andWhere('order.state != :draftState', { draftState: 'Draft' })
             .andWhere('order.customer.id = :customerId', { customerId })
             .getManyAndCount()
             .then(([items, totalItems]) => {