Skip to content

Commit 369b31a

Browse files
author
Robert Helmer
committed
rename
1 parent 2e3f257 commit 369b31a

File tree

1 file changed

+3
-3
lines changed
  • src/app/(proper_react)/(redesign)/(authenticated)/user/(dashboard)/settings

1 file changed

+3
-3
lines changed

src/app/(proper_react)/(redesign)/(authenticated)/user/(dashboard)/settings/actions.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export async function onRemoveEmail(email: SanitizedEmailAddressRow) {
194194
}
195195
}
196196

197-
const buildRecentAuthenticationError = async () => {
197+
const createRecentAuthErrorResponse = async () => {
198198
const l10n = getL10n(await getAcceptLangHeaderInServerComponents());
199199
return {
200200
success: false,
@@ -223,13 +223,13 @@ export async function onDeleteAccount() {
223223
logger.warn("delete-account-missing-authenticated-at", {
224224
subscriber_id: session.user.subscriber.id,
225225
});
226-
return buildRecentAuthenticationError();
226+
return createRecentAuthErrorResponse();
227227
}
228228
if (Date.now() - authenticatedAt > RECENT_AUTH_WINDOW_MS) {
229229
logger.warn("delete-account-authenticated-at-too-old", {
230230
subscriber_id: session.user.subscriber.id,
231231
});
232-
return buildRecentAuthenticationError();
232+
return createRecentAuthErrorResponse();
233233
}
234234

235235
const subscriber = await getSubscriberByFxaUid(

0 commit comments

Comments
 (0)