Skip to content

Commit

Permalink
Webcal testing (#258)
Browse files Browse the repository at this point in the history
* specify content type

* don't stringify
  • Loading branch information
jongrim authored Feb 27, 2024
1 parent 5a3e15a commit 816568f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion netlify/functions/webcal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ export const handler: Handler = async (event) => {

return {
statusCode: 200,
body: JSON.stringify(ics),
headers: {
"Content-Type": "text/calendar;charset=utf8",
},
body: ics,
};
};

Expand Down
1 change: 0 additions & 1 deletion src/storeActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export async function triggerUserAccessLoad(id: string) {

export async function loadWebCal(id: string) {
const record = await loadWebCalForUser(id);
console.log(record);
if (record) {
store.userWebCalId = record.webcal_id;
}
Expand Down

0 comments on commit 816568f

Please sign in to comment.