Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | 1x 1x 1x 1x 18x 1x | import {
bind, BindingScope, Provider, service,
} from '@loopback/core';
import { AnyObject } from '@loopback/repository';
import { consumeQueue, SqsSubscriber } from 'loopback4-sqs-consumer';
import { MessageService } from '.';
@consumeQueue({
queueUrl: process.env.AWS_REPLY_QUEUE_URL,
})
@bind({ scope: BindingScope.SINGLETON })
export class VerificationService implements Provider<SqsSubscriber> {
constructor(
@service(MessageService)
public messageService: MessageService
) { }
async value() {
return this._handleReplyMsg.bind(this);
}
/**
* @method
* @description Update data after creating pdf.
* @name handleReplyMsg
* @param {ReplyMessage | null} msg
* @return {Promise<void>}
*/
private async _handleReplyMsg(reply_msg: AnyObject): Promise<void> {
return this.messageService.handleReplyMsg(reply_msg);
}
}
|