Skip to content

Commit 2166fe4

Browse files
authored
Upgrade SDK
1 parent 6f979f3 commit 2166fe4

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"dependencies": {
1313
"@radix-ui/react-popover": "^1.0.6",
14-
"@team-plain/typescript-sdk": "^1.1.0",
14+
"@team-plain/typescript-sdk": "2.4.0",
1515
"clsx": "^1.2.1",
1616
"next": "13.3.2",
1717
"prettier": "2.8.8",

pages/api/contact-form.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse<
4747
return res.status(500).json({ error: upsertCustomerRes.error.message });
4848
}
4949

50-
console.log(`Customer upserted ${upsertCustomerRes.data.id}`);
50+
console.log(`Customer upserted ${upsertCustomerRes.data.customer.id}`);
5151

5252
const upsertTimelineEntryRes = await client.upsertCustomTimelineEntry({
53-
customerId: upsertCustomerRes.data.id,
53+
customerId: upsertCustomerRes.data.customer.id,
5454
title: 'Contact form',
5555
components: [
5656
{

0 commit comments

Comments
 (0)