|
@@ -549,7 +549,7 @@ class RepoService<T> {
|
|
|
List<Map<String, dynamic>> result = await dbClient!.query('Pedido',
|
|
|
limit: limit,
|
|
|
offset: offset,
|
|
|
- orderBy: 'id DESC',
|
|
|
+ orderBy: 'peticion DESC',
|
|
|
where: 'idMesa IS NULL');
|
|
|
return result.map((map) => Pedido.fromJson(map)).toList();
|
|
|
}
|
|
@@ -561,7 +561,7 @@ class RepoService<T> {
|
|
|
'Pedido',
|
|
|
limit: limit,
|
|
|
offset: offset,
|
|
|
- orderBy: 'id DESC',
|
|
|
+ orderBy: 'peticion DESC',
|
|
|
where: 'idMesa IS NOT NULL',
|
|
|
);
|
|
|
return result.map((map) => Pedido.fromJson(map)).toList();
|