purge phone calls and messages from cache when switching phone numbers or twilio account
This commit is contained in:
@ -24,11 +24,16 @@ const loader: LoaderFunction = async ({ request }) => {
|
||||
where: { phoneNumberId: phoneNumber.id },
|
||||
orderBy: { createdAt: Prisma.SortOrder.desc },
|
||||
}));
|
||||
return json<KeypadLoaderData>({
|
||||
hasOngoingSubscription,
|
||||
hasPhoneNumber,
|
||||
lastRecipientCalled: lastCall?.recipient,
|
||||
});
|
||||
return json<KeypadLoaderData>(
|
||||
{
|
||||
hasOngoingSubscription,
|
||||
hasPhoneNumber,
|
||||
lastRecipientCalled: lastCall?.recipient,
|
||||
},
|
||||
{
|
||||
headers: { Vary: "Cookie" },
|
||||
},
|
||||
);
|
||||
};
|
||||
|
||||
export default loader;
|
||||
|
Reference in New Issue
Block a user