Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: release #371

Merged
merged 3 commits into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@restorecommerce/chassis-srv",
"version": "1.6.2",
"version": "1.6.3",
"description": "Restore Commerce microservice chassis",
"main": "./lib/index.js",
"author": "n-fuse GmbH",
Expand Down
4 changes: 2 additions & 2 deletions src/database/provider/arango/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ export class Arango implements DatabaseProvider {
throw new Error('invalid or missing collection argument for find operation');
}

let filterQuery: any = filter || {};
const opts = options || {};
let filterQuery: any = filter ?? {};
const opts = options ?? {};
let filterResult: any;
let bindVars: any;

Expand Down
18 changes: 6 additions & 12 deletions src/database/provider/arango/graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,10 @@ export class ArangoGraph extends Arango implements GraphDatabaseProvider {
if (_.isNil(dropCollection)) {
dropCollection = false;
}
const collection = await this.graph.removeVertexCollection(collectionName,
dropCollection);
const collection = await this.graph.removeVertexCollection(
collectionName,
dropCollection
);
return collection;
}

Expand Down Expand Up @@ -492,16 +494,8 @@ export class ArangoGraph extends Arango implements GraphDatabaseProvider {
return result;
}

arrUnique(arr) {
let cleaned = [];
arr.forEach((itm) => {
let unique = true;
cleaned.forEach((itm2) => {
if (_.isEqual(itm, itm2)) unique = false;
});
if (unique) cleaned.push(itm);
});
return cleaned;
arrUnique<T>(arr: T[]) {
return [... new Set<T>(arr)];
}

/**
Expand Down
Loading