⚡ Some minor fixes for GSuite Admin Node
This commit is contained in:
@@ -4,11 +4,11 @@ import {
|
||||
|
||||
import {
|
||||
IDataObject,
|
||||
INodeExecutionData,
|
||||
INodeTypeDescription,
|
||||
INodeType,
|
||||
ILoadOptionsFunctions,
|
||||
INodeExecutionData,
|
||||
INodePropertyOptions,
|
||||
INodeType,
|
||||
INodeTypeDescription,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import {
|
||||
@@ -17,8 +17,8 @@ import {
|
||||
} from './GenericFunctions';
|
||||
|
||||
import {
|
||||
userOperations,
|
||||
userFields,
|
||||
userOperations,
|
||||
} from './UserDescription';
|
||||
|
||||
export class GSuiteAdmin implements INodeType {
|
||||
@@ -310,6 +310,7 @@ export class GSuiteAdmin implements INodeType {
|
||||
}
|
||||
|
||||
if (Object.keys(body.name).length === 0) {
|
||||
//@ts-ignore
|
||||
delete body.name;
|
||||
}
|
||||
|
||||
|
||||
@@ -665,14 +665,14 @@ export const userFields = [
|
||||
type: 'string',
|
||||
default: '',
|
||||
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',
|
||||
name: 'showDeleted',
|
||||
type: 'boolean',
|
||||
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',
|
||||
|
||||
Reference in New Issue
Block a user