@defra-fish/gafl-webapp-service
Version:
The websales frontend for the GAFL service
13 lines (12 loc) • 397 B
JavaScript
import { COMPLETION_STATUS } from '../../../constants.js'
/**
* Transfer the validate page object
* @param request
* @returns {Promise<void>}
*/
export default async request => {
const status = await request.cache().helpers.status.get()
status[COMPLETION_STATUS.paymentCreated] = false
status[COMPLETION_STATUS.paymentFailed] = false
await request.cache().helpers.status.set(status)
}