Untitled
unknown
plain_text
2 years ago
615 B
10
Indexable
public async resetApplicationState(
tokenDetails: TokenDetails
): Promise<[]> {
const logger = this.log.child(getChildLoggerInstance(tokenDetails, 'HOME_RESET_APPLICATION'));
const record = await this.getActiveFormDataByCustomerId(tokenDetails);
if (!record) {
logger.error('No active form found that can be dropped: ' + tokenDetails.customerId);
return Promise.resolve([]);
}
record.status = ApplicationStatus.APPLICATION_DROPPED;
this.formDataRepository.saveForm(record);
return Promise.resolve([]);
}Editor is loading...
Leave a Comment