Fix grammar issue in the doc (#10064)
added "in" to fix a grammar issue
This commit is contained in:
1 parent
fc5d2b5fca
commit
4f0726311a
1 file changed
+1
-1
@@ -10,7 +10,7 @@ This chapter lists constraints to keep in mind when creating a service.
|
|||||||
|
|
||||||
Medusa wraps service method executions to inject useful context or transactions. However, since Medusa can't detect whether the method is asynchronous, it always executes methods in the wrapper with the `await` keyword.
|
Medusa wraps service method executions to inject useful context or transactions. However, since Medusa can't detect whether the method is asynchronous, it always executes methods in the wrapper with the `await` keyword.
|
||||||
|
|
||||||
For example, if you have a synchronous `getMessage` method, and you use it other resources like workflows, Medusa executes it as an async method:
|
For example, if you have a synchronous `getMessage` method, and you use it in other resources like workflows, Medusa executes it as an async method:
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
await helloModuleService.getMessage()
|
await helloModuleService.getMessage()
|
||||||
|
|||||||
Reference in new issue
Block a user