contentful-migration
Version:
Migration tooling for contentful
22 lines • 589 B
JavaScript
;
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