We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d9ba43 commit 7589928Copy full SHA for 7589928
modules/linking/scratch.ts
@@ -106,7 +106,7 @@ export default async function linkScratchRole(
106
body: JSON.stringify({
107
platform_name: "Scratch",
108
platform_username: username,
109
- metadata: { joined: scratch.history.joined.split("T")[0] },
+ metadata: scratch.history ? { joined: scratch.history.joined.split("T")[0] } : {},
110
} satisfies RESTPutAPICurrentUserApplicationRoleConnectionJSONBody),
111
passThroughBody: true,
112
headers: {
0 commit comments