Skip to content

Commit 7589928

Browse files
committed
ignore fetch errors in link accounts
Signed-off-by: cobalt <61329810+cobaltt7@users.noreply.github.com>
1 parent 2d9ba43 commit 7589928

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/linking/scratch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export default async function linkScratchRole(
106106
body: JSON.stringify({
107107
platform_name: "Scratch",
108108
platform_username: username,
109-
metadata: { joined: scratch.history.joined.split("T")[0] },
109+
metadata: scratch.history ? { joined: scratch.history.joined.split("T")[0] } : {},
110110
} satisfies RESTPutAPICurrentUserApplicationRoleConnectionJSONBody),
111111
passThroughBody: true,
112112
headers: {

0 commit comments

Comments
 (0)