File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -290,10 +290,8 @@ export class DatabaseConnection {
290290 if ( orderby ) {
291291 if ( typeof orderby === "string" || orderby instanceof String ) {
292292 var neworderby = null ;
293- console . log ( orderby ) ;
294293 try {
295294 neworderby = JSON . parse ( ( orderby as string ) ) ;
296- console . log ( neworderby ) ;
297295 mysort = neworderby ;
298296 } catch ( error ) {
299297 }
@@ -302,6 +300,11 @@ export class DatabaseConnection {
302300 mysort = orderby ;
303301 }
304302 }
303+ if ( projection ) {
304+ if ( typeof projection === "string" || projection instanceof String ) {
305+ projection = JSON . parse ( ( projection as string ) ) ;
306+ }
307+ }
305308 // for (let key in query) {
306309 if ( query !== null && query !== undefined ) {
307310 var json : any = query ;
Original file line number Diff line number Diff line change 1- 0.0.539
1+ 0.0.540
You can’t perform that action at this time.
0 commit comments