Some minor fixes for GSuite Admin Node

This commit is contained in:
Jan Oberhauser
2020-10-03 18:10:03 +02:00
parent f58e336d5f
commit fcbefe8845
2 changed files with 7 additions and 6 deletions

View File

@@ -4,11 +4,11 @@ import {
import { import {
IDataObject, IDataObject,
INodeExecutionData,
INodeTypeDescription,
INodeType,
ILoadOptionsFunctions, ILoadOptionsFunctions,
INodeExecutionData,
INodePropertyOptions, INodePropertyOptions,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow'; } from 'n8n-workflow';
import { import {
@@ -17,8 +17,8 @@ import {
} from './GenericFunctions'; } from './GenericFunctions';
import { import {
userOperations,
userFields, userFields,
userOperations,
} from './UserDescription'; } from './UserDescription';
export class GSuiteAdmin implements INodeType { export class GSuiteAdmin implements INodeType {
@@ -310,6 +310,7 @@ export class GSuiteAdmin implements INodeType {
} }
if (Object.keys(body.name).length === 0) { if (Object.keys(body.name).length === 0) {
//@ts-ignore
delete body.name; delete body.name;
} }

View File

@@ -665,14 +665,14 @@ export const userFields = [
type: 'string', type: 'string',
default: '', default: '',
description: `Free text search terms to find users that match these terms in any field, except for extended properties.</br> description: `Free text search terms to find users that match these terms in any field, except for extended properties.</br>
For more information on constructing user queries, see <a href="https://developers.google.com/admin-sdk/directory/v1/guides/search-users">Search for Users</a>`, For more information on constructing user queries, see <a href="https://developers.google.com/admin-sdk/directory/v1/guides/search-users" target="_blank">Search for Users</a>`,
}, },
{ {
displayName: 'Show Deleted', displayName: 'Show Deleted',
name: 'showDeleted', name: 'showDeleted',
type: 'boolean', type: 'boolean',
default: false, default: false,
description: 'Whether to include deleted users (with status equals "cancelled") in the result.', description: 'If set to true, retrieves the list of deleted users.',
}, },
{ {
displayName: 'Sort Order', displayName: 'Sort Order',