mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
⚡ Migrated API from V1beta to V1 (#813)
This commit is contained in:
@@ -17,13 +17,14 @@ export async function codaApiRequest(this: IExecuteFunctions | IExecuteSingleFun
|
||||
method,
|
||||
qs,
|
||||
body,
|
||||
uri: uri ||`https://coda.io/apis/v1beta1${resource}`,
|
||||
uri: uri ||`https://coda.io/apis/v1${resource}`,
|
||||
json: true
|
||||
};
|
||||
options = Object.assign({}, options, option);
|
||||
if (Object.keys(options.body).length === 0) {
|
||||
delete options.body;
|
||||
}
|
||||
|
||||
try {
|
||||
return await this.helpers.request!(options);
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user