Skip to content

Commit

Permalink
fix: remove event.creator metadata (#564)
Browse files Browse the repository at this point in the history
  • Loading branch information
y-oksaku authored Sep 30, 2022
1 parent b107224 commit 37b01cd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 0 additions & 4 deletions lib/eventFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -961,10 +961,6 @@ class EventFactory extends BaseFactory {
modelConfig.meta.parameters = updatedParameters;
}

if (modelConfig.creator) {
modelConfig.meta.event = { creator: modelConfig.creator.username };
}

if (!config.meta) {
config.meta = modelConfig.meta;
}
Expand Down
3 changes: 1 addition & 2 deletions test/lib/eventFactory.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ describe('Event Factory', () => {
createTime: nowTime,
creator,
commit,
meta: { event: { creator: 'stjohn' } }
meta: {}
};

syncedPipelineMock = {
Expand Down Expand Up @@ -1741,7 +1741,6 @@ describe('Event Factory', () => {

config.creator = creatorTest;
expected.creator = creatorTest;
expected.meta.event.creator = creatorTest.username;

return eventFactory.create(config).then(model => {
assert.instanceOf(model, Event);
Expand Down

0 comments on commit 37b01cd

Please sign in to comment.