Spaces:
Running

axeronis commited on
Commit
5820d73
·
1 Parent(s): f501374

fix: update connectWhatsApp signature in api.ts

Browse files
Files changed (1) hide show
  1. frontend/lib/api.ts +6 -6
frontend/lib/api.ts CHANGED
@@ -273,12 +273,12 @@ export const channelsApi = {
273
  return response.data
274
  },
275
 
276
- connectWhatsApp: async (data: {
277
- access_token: string
278
- phone_number_id: string
279
- verify_token: string
280
- }) => {
281
- const response = await api.post('/api/v1/channels/meta/whatsapp/connect', data)
282
  return response.data
283
  },
284
 
 
273
  return response.data
274
  },
275
 
276
+ connectWhatsApp: async (accessToken: string, phoneNumberId: string, businessAccountId: string) => {
277
+ const response = await api.post('/api/v1/channels/whatsapp/connect', {
278
+ access_token: accessToken,
279
+ phone_number_id: phoneNumberId,
280
+ business_account_id: businessAccountId
281
+ })
282
  return response.data
283
  },
284