Skip to content

Commit 5266de6

Browse files
fix(order): remove sort on export excel
1 parent 58cb853 commit 5266de6

22 files changed

+4
-3
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@ env.yaml
3939

4040
public/media/*
4141
public/reconcile/*
42-
42+
public/files/*
4343
json/*
-34.1 KB
Binary file not shown.
-38.6 KB
Binary file not shown.
-41.4 KB
Binary file not shown.
-42.7 KB
Binary file not shown.
-41.4 KB
Binary file not shown.
-39.8 KB
Binary file not shown.
-41.4 KB
Binary file not shown.
-6.7 KB
Binary file not shown.
-6.7 KB
Binary file not shown.
-6.7 KB
Binary file not shown.
-6.67 KB
Binary file not shown.

public/files/1726495501-orders.xlsx

-6.7 KB
Binary file not shown.

public/files/1726495625-orders.xlsx

-6.64 KB
Binary file not shown.

public/files/1726495728-orders.xlsx

-6.64 KB
Binary file not shown.

public/files/1726495803-orders.xlsx

-6.64 KB
Binary file not shown.

public/files/1726495872-orders.xlsx

-6.64 KB
Binary file not shown.

public/files/1726495898-orders.xlsx

-6.64 KB
Binary file not shown.

public/files/1726496057-orders.xlsx

-6.64 KB
Binary file not shown.

public/files/1726496090-orders.xlsx

-6.67 KB
Binary file not shown.

public/files/1726496218-orders.xlsx

-6.74 KB
Binary file not shown.

src/app/owner/restaurant/order/order.controller.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ export class OrderController {
7878
'_t1.customer_phone AS customer_phone',
7979
]);
8080

81-
const results = await query.search().sort().dateRange().getRawMany();
81+
query.orderBy('t1.created_at', 'DESC');
82+
83+
const results = await query.search().dateRange().getRawMany();
8284
const workbook = new ExcelJS.Workbook();
8385
const worksheet = workbook.addWorksheet('Sheet1');
8486

@@ -114,7 +116,6 @@ export class OrderController {
114116
processing()
115117
.then((path) => {
116118
// send event
117-
console.log({ url: config.getDownloadURI(path) });
118119
Socket.getInstance().event(me.id, {
119120
request_id,
120121
status: PubSubStatus.Success,

0 commit comments

Comments
 (0)