Update zapier trigger payload (#8464)

- fixes zapier tests
This commit is contained in:
martmull
2024-11-12 17:58:36 +01:00
committed by GitHub
parent 31f03764d6
commit 269eaf4422
7 changed files with 65 additions and 49 deletions

View File

@ -1,14 +1,4 @@
import { Bundle, ZObject } from 'zapier-platform-core';
import { ObjectData } from '../utils/data.types';
import { listSample } from '../utils/triggers/triggers.utils';
const listRecordIdsRequest = async (
z: ZObject,
bundle: Bundle,
): Promise<ObjectData[]> => {
return listSample(z, bundle, true);
};
import { performList } from '../utils/triggers/triggers.utils';
export const listRecordIdsKey = 'list_record_ids';
@ -21,6 +11,6 @@ export default {
key: listRecordIdsKey,
noun: 'Object',
operation: {
perform: listRecordIdsRequest,
perform: performList,
},
};