Skip to content

Commit 1467fa4

Browse files
committed
Fix after upgrading ts
1 parent 71d1d91 commit 1467fa4

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

OpenFlow/src/DatabaseConnection.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,9 @@ export class DatabaseConnection {
346346
// _query = { $and: [query, this.getbasequery(jwt, "_acl", [Rights.read])] };
347347
// }
348348
if (projection != null) {
349-
arr = await this.db.collection(collectionname).find(_query).project(projection).sort(mysort).limit(top).skip(skip).toArray();
349+
arr = await this.db.collection(collectionname).find(_query).project(projection).sort(mysort as any).limit(top).skip(skip).toArray();
350350
} else {
351-
arr = await this.db.collection(collectionname).find(_query).sort(mysort).limit(top).skip(skip).toArray();
351+
arr = await this.db.collection(collectionname).find(_query).sort(mysort as any).limit(top).skip(skip).toArray();
352352
}
353353
for (var i: number = 0; i < arr.length; i++) { arr[i] = this.decryptentity(arr[i]); }
354354
DatabaseConnection.traversejsondecode(arr);

OpenFlow/src/public/Controllers.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,15 @@ export class chartset {
230230
'#949FB1', // grey
231231
'#4D5360' // dark grey
232232
];
233-
colors: string[] = this.baseColors;
233+
colors: string[] = [
234+
'#97BBCD', // blue
235+
'#DCDCDC', // light grey
236+
'#F7464A', // red
237+
'#46BFBD', // green
238+
'#FDB45C', // yellow
239+
'#949FB1', // grey
240+
'#4D5360' // dark grey
241+
];
234242
type: string = 'bar';
235243
heading: string = "";
236244
labels: string[] = [];

0 commit comments

Comments
 (0)