Untitled

 avatar
unknown
plain_text
10 months ago
615 B
6
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