How can i get the current context type? #192
Unanswered
piccinnigius
asked this question in
Q&A
Replies: 2 comments 11 replies
-
I treat However, before doing that, you need to remove You can achieve this by applying a middleware: export const EmbeddDocumentsAction = os
.handler(async function ({ input: { company_id, documents }, context }) {
let otherContext;
const result = await call(EmbeddDocumentsWorker.use(({ context, next }) => {
otherContext = context;
return next()
}), { context });
return result
}); |
Beta Was this translation helpful? Give feedback.
7 replies
-
New |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, thanks in advance for your awesome work. I have a question, given the following:
how can i retrieve the context type from EmbeddDocumentsWorker?
Beta Was this translation helpful? Give feedback.
All reactions