Skip to content

Commit

Permalink
feat(cu): capitalize AoGlobal.Process fields
Browse files Browse the repository at this point in the history
  • Loading branch information
TillaTheHun0 committed Dec 19, 2023
1 parent 3999d70 commit 80cb68f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion servers/cu/src/domain/client/ao-su.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export const loadMessagesWith = ({ fetch, logger: _logger, pageSize }) => {
timestamp: path(['timestamp'])
}),
AoGlobal: applySpec({
Process: always({ id: processId, owner: processOwner, tags: processTags })
Process: always({ Id: processId, Owner: processOwner, Tags: processTags })
})
})
)(edge)
Expand Down
4 changes: 2 additions & 2 deletions servers/cu/src/domain/lib/loadMessages.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export function cronMessagesBetweenWith ({
Cron: true
},
AoGlobal: {
Process: { id: processId, owner: processOwner, tags: processTags }
Process: { Id: processId, Owner: processOwner, Tags: processTags }
}
}
}
Expand Down Expand Up @@ -236,7 +236,7 @@ export function cronMessagesBetweenWith ({
Cron: true
},
AoGlobal: {
Process: { id: processId, owner: processOwner, tags: processTags }
Process: { Id: processId, Owner: processOwner, Tags: processTags }
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions servers/cu/src/domain/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ export const messageSchema = z.object({
}),
AoGlobal: z.object({
Process: z.object({
id: z.string(),
owner: z.string(),
tags: z.array(rawTagSchema)
Id: z.string(),
Owner: z.string(),
Tags: z.array(rawTagSchema)
})
}).passthrough() // TODO: remove once AoGlobal is more defined
}).passthrough()
Expand Down

0 comments on commit 80cb68f

Please sign in to comment.