mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-17 10:04:08 -08:00
10 lines
401 B
TypeScript
10 lines
401 B
TypeScript
|
import { IVersion } from '@/Interface';
|
||
|
import { INSTANCE_ID_HEADER } from '@/constants';
|
||
|
import { IDataObject } from 'n8n-workflow';
|
||
|
import { get } from './helpers';
|
||
|
|
||
|
export async function getNextVersions(endpoint: string, version: string, instanceId: string): Promise<IVersion[]> {
|
||
|
const headers = {[INSTANCE_ID_HEADER as string] : instanceId};
|
||
|
return await get(endpoint, version, {}, headers);
|
||
|
}
|