verto-internals
Advanced tools
Comparing version 0.7.0 to 0.8.0
{ | ||
"name": "verto-internals", | ||
"version": "0.7.0", | ||
"version": "0.8.0", | ||
"description": "A collection of common code shared throughout Verto", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -84,3 +84,3 @@ "use strict"; | ||
let gdQuery = this.datastoreInstance.createQuery(query.kind); | ||
const { limit, offset, filters } = query; | ||
const { limit, offset, filters, order } = query; | ||
if (limit) { | ||
@@ -97,2 +97,5 @@ gdQuery = gdQuery.limit(limit); | ||
} | ||
if (order) { | ||
gdQuery = gdQuery.order(order[0], order[1]); | ||
} | ||
const data = await this.query(query.kind, (query) => gdQuery) || []; | ||
@@ -99,0 +102,0 @@ return { |
@@ -136,3 +136,3 @@ import {Injectable} from "@nestjs/common"; | ||
let gdQuery = this.datastoreInstance.createQuery(query.kind); | ||
const { limit, offset, filters } = query; | ||
const { limit, offset, filters, order } = query; | ||
@@ -153,2 +153,6 @@ if(limit) { | ||
if(order) { | ||
gdQuery = gdQuery.order(order[0], order[1]); | ||
} | ||
const data = await this.query(query.kind, (query) => gdQuery) || []; | ||
@@ -155,0 +159,0 @@ return { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
143826
1052