rm debugs
This commit is contained in:
parent
918c4c695a
commit
4dfc424762
@ -256,11 +256,9 @@ export class RegistryClient {
|
|||||||
attributes: Util.toGQLAttributes(attributes),
|
attributes: Util.toGQLAttributes(attributes),
|
||||||
all
|
all
|
||||||
};
|
};
|
||||||
console.debug("[DEBUG] variables", variables);
|
|
||||||
|
|
||||||
let result = (await this._graph(query)(variables))['queryRecords'];
|
let result = (await this._graph(query)(variables))['queryRecords'];
|
||||||
result = RegistryClient.prepareAttributes('attributes')(result);
|
result = RegistryClient.prepareAttributes('attributes')(result);
|
||||||
console.debug("[DEBUG] prepared result", result);
|
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,6 @@ export class Util {
|
|||||||
* Marshal object into gql 'attributes' variable.
|
* Marshal object into gql 'attributes' variable.
|
||||||
*/
|
*/
|
||||||
static toGQLAttributes(obj: any) {
|
static toGQLAttributes(obj: any) {
|
||||||
console.log("[DEBUG] toGQLAttributes", obj);
|
|
||||||
const vars: any[] = [];
|
const vars: any[] = [];
|
||||||
Object.keys(obj).forEach(key => {
|
Object.keys(obj).forEach(key => {
|
||||||
vars.push({ key, value: this.toGQLValue(obj[key]) });
|
vars.push({ key, value: this.toGQLValue(obj[key]) });
|
||||||
|
Loading…
Reference in New Issue
Block a user