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