refactor: standardize access token variable naming across routes
This commit is contained in:
@@ -13,7 +13,7 @@ import {
|
||||
import type { Route } from './+types/actions.admin.subscribe-plan.create'
|
||||
|
||||
export const action = async ({ request }: Route.ActionArgs) => {
|
||||
const { staffToken } = await handleCookie(request)
|
||||
const { staffToken: accessToken } = await handleCookie(request)
|
||||
try {
|
||||
const {
|
||||
errors,
|
||||
@@ -30,7 +30,7 @@ export const action = async ({ request }: Route.ActionArgs) => {
|
||||
}
|
||||
|
||||
const { data: subscribePlanData } = await createSubscribePlanRequest({
|
||||
accessToken: staffToken,
|
||||
accessToken,
|
||||
payload,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user