Add order by to return first order (#82)
This commit is contained in:
@@ -115,6 +115,7 @@ export class OrderAPI extends BaseSQLDataSource {
|
|||||||
.select('*')
|
.select('*')
|
||||||
.from('orders')
|
.from('orders')
|
||||||
.where(column, value)
|
.where(column, value)
|
||||||
|
.orderBy('id')
|
||||||
.first()
|
.first()
|
||||||
.cache(MINUTE)
|
.cache(MINUTE)
|
||||||
.then((row) => this.createOrderFromRow(row));
|
.then((row) => this.createOrderFromRow(row));
|
||||||
|
|||||||
Reference in New Issue
Block a user