@defra/wls-eps-api
Version:
The API to support the wildlife licencing of European Protected Species
11 lines (10 loc) • 304 B
JavaScript
/**
* Consume Prepare output
* @param application.dataValues
* @returns {any}
*/
export const prepareResponse = a => Object.assign((({ createdAt, updatedAt, userId, application, ...l }) => l)(a), {
createdAt: a.createdAt.toISOString(),
updatedAt: a.updatedAt.toISOString(),
...a.application
})