UNPKG

contentful-migration

Version:
22 lines 589 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TagUpdateAction = void 0; const action_1 = require("./action"); class TagUpdateAction extends action_1.EntityAction { constructor(tagId, props) { super(); this.props = props; this.tagId = tagId; } getEntityId() { return this.tagId; } getEntityType() { return action_1.EntityType.Tag; } async applyTo(tag) { Object.assign(tag, this.props); } } exports.TagUpdateAction = TagUpdateAction; //# sourceMappingURL=tag-update.js.map