From 9d317471dd5f4b249552424e42991b43644b6ace Mon Sep 17 00:00:00 2001 From: chark1es Date: Tue, 18 Feb 2025 00:12:54 -0800 Subject: [PATCH] fix logging --- bun.lock | 6 ++++++ package.json | 2 ++ src/components/dashboard/EventsSection/EventCheckIn.tsx | 2 +- .../dashboard/Officer_EventManagement/Attendees.tsx | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/bun.lock b/bun.lock index 4cd02f5..8fc5dcf 100644 --- a/bun.lock +++ b/bun.lock @@ -11,6 +11,7 @@ "@iconify/react": "^5.2.0", "@types/highlight.js": "^10.1.0", "@types/js-yaml": "^4.0.9", + "@types/lodash": "^4.17.15", "@types/react": "^19.0.8", "@types/react-dom": "^19.0.3", "astro": "5.1.1", @@ -19,6 +20,7 @@ "highlight.js": "^11.11.1", "js-yaml": "^4.1.0", "jszip": "^3.10.1", + "lodash": "^4.17.21", "motion": "^11.15.0", "next": "^15.1.2", "pocketbase": "^0.25.1", @@ -366,6 +368,8 @@ "@types/js-yaml": ["@types/js-yaml@4.0.9", "", {}, "sha512-k4MGaQl5TGo/iipqb2UDG2UwjXziSWkh0uysQelTlJpX1qGlpUZYm8PnO4DxG1qBomtJUdYJ6qR6xdIah10JLg=="], + "@types/lodash": ["@types/lodash@4.17.15", "", {}, "sha512-w/P33JFeySuhN6JLkysYUK2gEmy9kHHFN7E8ro0tkfmlDOgxBDzWEZ/J8cWA+fHqFevpswDTFZnDx+R9lbL6xw=="], + "@types/mdast": ["@types/mdast@4.0.4", "", { "dependencies": { "@types/unist": "*" } }, "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA=="], "@types/mdx": ["@types/mdx@2.0.13", "", {}, "sha512-+OWZQfAYyio6YkJb3HLxDrvnx6SWWDbC0zVPfBRzUk0/nqoDyf6dNxQi3eArPe8rJ473nobTMQ/8Zk+LxJ+Yuw=="], @@ -834,6 +838,8 @@ "locate-path": ["locate-path@5.0.0", "", { "dependencies": { "p-locate": "^4.1.0" } }, "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g=="], + "lodash": ["lodash@4.17.21", "", {}, "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="], + "longest-streak": ["longest-streak@3.1.0", "", {}, "sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g=="], "lru-cache": ["lru-cache@10.4.3", "", {}, "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ=="], diff --git a/package.json b/package.json index 8514762..2f0c8a3 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "@iconify/react": "^5.2.0", "@types/highlight.js": "^10.1.0", "@types/js-yaml": "^4.0.9", + "@types/lodash": "^4.17.15", "@types/react": "^19.0.8", "@types/react-dom": "^19.0.3", "astro": "5.1.1", @@ -26,6 +27,7 @@ "highlight.js": "^11.11.1", "js-yaml": "^4.1.0", "jszip": "^3.10.1", + "lodash": "^4.17.21", "motion": "^11.15.0", "next": "^15.1.2", "pocketbase": "^0.25.1", diff --git a/src/components/dashboard/EventsSection/EventCheckIn.tsx b/src/components/dashboard/EventsSection/EventCheckIn.tsx index 77d2217..9f38ee3 100644 --- a/src/components/dashboard/EventsSection/EventCheckIn.tsx +++ b/src/components/dashboard/EventsSection/EventCheckIn.tsx @@ -216,7 +216,7 @@ const EventCheckIn = () => { await logger.send( "check_in", "events", - `User ${currentUser.name} (${currentUser.graduation_year}) checked in to event ${event.event_name}` + `Checked in to event ${event.event_name}` ); // Close the food selection modal if it's open diff --git a/src/components/dashboard/Officer_EventManagement/Attendees.tsx b/src/components/dashboard/Officer_EventManagement/Attendees.tsx index 4be3b4c..2deb387 100644 --- a/src/components/dashboard/Officer_EventManagement/Attendees.tsx +++ b/src/components/dashboard/Officer_EventManagement/Attendees.tsx @@ -209,7 +209,7 @@ export default function Attendees() { await sendLog.send( "view", "event_attendees", - `Viewed attendees for event: ${e.detail.eventName} (${e.detail.eventId})` + `Viewed attendees for event: ${e.detail.eventName}` ); } catch (error) { console.error('Failed to log attendees view:', error);