Skip to content

Commit

Permalink
feat(cu): add owner to initial state
Browse files Browse the repository at this point in the history
  • Loading branch information
TillaTheHun0 committed Oct 24, 2023
1 parent d88403d commit e3f1cbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion servers/cu/src/domain/lib/loadProcess.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function loadLatestEvaluationWith ({ findLatestEvaluation, logger }) {
* Initial Process State
*/
() => Resolved({
state: { tags: ctx.tags || [] },
state: { owner: ctx.owner, tags: ctx.tags || [] },
result: {
error: undefined,
messages: [],
Expand Down
2 changes: 1 addition & 1 deletion servers/cu/src/domain/lib/loadProcess.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('loadProcess', () => {
assert.deepStrictEqual(res.tags, tags)
assert.deepStrictEqual(res.owner, 'woohoo')
assert.deepStrictEqual(res.block, { height: 123, timestamp: 1697574792 })
assert.deepStrictEqual(res.state, { tags })
assert.deepStrictEqual(res.state, { tags, owner: 'woohoo' })
assert.deepStrictEqual(res.result, {
messages: [],
output: [],
Expand Down

0 comments on commit e3f1cbc

Please sign in to comment.