mirror of
https://github.com/neynarxyz/create-farcaster-mini-app.git
synced 2025-12-06 01:12:34 -05:00
fix: frame_* to miniapp_*
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user