More refactors, adding wider support
This commit is contained in:
@@ -4,6 +4,7 @@ import * as Joi from 'joi';
|
||||
import { AbstractActionHandler, AwsProperties, Format } from '../abstract-action.handler';
|
||||
import { Action } from '../action.enum';
|
||||
import { AttributesService } from '../aws-shared-entities/attributes.service';
|
||||
import { RequestContext } from '../_context/request.context';
|
||||
|
||||
type QueryParams = {
|
||||
AttributeName: string;
|
||||
@@ -28,7 +29,7 @@ export class SetSubscriptionAttributesHandler extends AbstractActionHandler<Quer
|
||||
TopicArn: Joi.string().required(),
|
||||
});
|
||||
|
||||
protected async handle({ AttributeName, AttributeValue, TopicArn }: QueryParams, awsProperties: AwsProperties) {
|
||||
protected async handle({ AttributeName, AttributeValue, TopicArn }: QueryParams, { awsProperties} : RequestContext) {
|
||||
await this.attributeService.create({ name: AttributeName, value: AttributeValue, arn: TopicArn });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user