mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor: Reduce usage of IExecuteSingleFunctions (no-changelog) (#6944)
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import type {
|
||||
IExecuteFunctions,
|
||||
IExecuteSingleFunctions,
|
||||
ILoadOptionsFunctions,
|
||||
ICredentialTestFunctions,
|
||||
IDataObject,
|
||||
@@ -58,12 +57,7 @@ const googleServiceAccountScopes = {
|
||||
type GoogleServiceAccount = keyof typeof googleServiceAccountScopes;
|
||||
|
||||
export async function getGoogleAccessToken(
|
||||
this:
|
||||
| IExecuteFunctions
|
||||
| IExecuteSingleFunctions
|
||||
| ILoadOptionsFunctions
|
||||
| ICredentialTestFunctions
|
||||
| IPollFunctions,
|
||||
this: IExecuteFunctions | ILoadOptionsFunctions | ICredentialTestFunctions | IPollFunctions,
|
||||
credentials: IDataObject,
|
||||
service: GoogleServiceAccount,
|
||||
): Promise<IDataObject> {
|
||||
|
||||
Reference in New Issue
Block a user