fix: frame_* to miniapp_*

This commit is contained in:
veganbeef 2025-09-09 23:20:35 -07:00
parent ccd27f53b3
commit db735d7568
No known key found for this signature in database

View File

@ -56,7 +56,7 @@ export async function POST(request: NextRequest) {
// Only handle notifications if Neynar is not enabled // Only handle notifications if Neynar is not enabled
// When Neynar is enabled, notifications are handled through their webhook // When Neynar is enabled, notifications are handled through their webhook
switch (event.event) { switch (event.event) {
case "frame_added": case "miniapp_added":
if (event.notificationDetails) { if (event.notificationDetails) {
await setUserNotificationDetails(fid, event.notificationDetails); await setUserNotificationDetails(fid, event.notificationDetails);
await sendMiniAppNotification({ await sendMiniAppNotification({
@ -69,7 +69,7 @@ export async function POST(request: NextRequest) {
} }
break; break;
case "frame_removed": case "miniapp_removed":
await deleteUserNotificationDetails(fid); await deleteUserNotificationDetails(fid);
break; break;