@epic-web/workshop-app 5.9.3 → 5.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/server/index.js
CHANGED
|
@@ -7989,6 +7989,8 @@ async function fetchDiscordPosts({ request }) {
|
|
|
7989
7989
|
async getFreshValue() {
|
|
7990
7990
|
const result = await fetch(url, {
|
|
7991
7991
|
headers: { "content-type": "application/json" }
|
|
7992
|
+
}).catch((error) => {
|
|
7993
|
+
return new Response(getErrorMessage(error), { status: 500 });
|
|
7992
7994
|
});
|
|
7993
7995
|
if (!result.ok) {
|
|
7994
7996
|
console.error(`There was an error communicating with discord`);
|
|
@@ -9774,8 +9776,8 @@ const EVENTS = {
|
|
|
9774
9776
|
};
|
|
9775
9777
|
const UserInfoSchema = z.object({
|
|
9776
9778
|
id: z.string(),
|
|
9777
|
-
email: z.string()
|
|
9778
|
-
name: z.string().optional()
|
|
9779
|
+
email: z.string(),
|
|
9780
|
+
name: z.string().nullable().optional()
|
|
9779
9781
|
});
|
|
9780
9782
|
const authEmitter = remember("authEmitter", () => new EventEmitter());
|
|
9781
9783
|
authEmitter.removeAllListeners();
|