mirror of
https://github.com/neynarxyz/create-farcaster-mini-app.git
synced 2025-11-15 23:58:56 -05:00
fix: frame_* to miniapp_*
This commit is contained in:
parent
ccd27f53b3
commit
db735d7568
@ -56,7 +56,7 @@ export async function POST(request: NextRequest) {
|
||||
// Only handle notifications if Neynar is not enabled
|
||||
// When Neynar is enabled, notifications are handled through their webhook
|
||||
switch (event.event) {
|
||||
case "frame_added":
|
||||
case "miniapp_added":
|
||||
if (event.notificationDetails) {
|
||||
await setUserNotificationDetails(fid, event.notificationDetails);
|
||||
await sendMiniAppNotification({
|
||||
@ -69,7 +69,7 @@ export async function POST(request: NextRequest) {
|
||||
}
|
||||
break;
|
||||
|
||||
case "frame_removed":
|
||||
case "miniapp_removed":
|
||||
await deleteUserNotificationDetails(fid);
|
||||
break;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user