Skip to content

The open alternative to Salesforce, designed for AI.

382 B
Raw Blame
import { type CoreApiClient } from 'twenty-client-sdk/core';

export const updatePeopleStatus = async ({
  client,
  recordIds,
  data,
}: {
  client: CoreApiClient;
  recordIds: string[];
  data: Record<string, unknown>;
}): Promise<void> => {
  await client.mutation({
    updatePeople: {
      __args: { filter: { id: { in: recordIds } }, data },
      id: true,
    },
  });
};