docs-util: fix incorrect relations in data model references + other fixes (#12487)
* fix price model incorrect relations * fix events that don't have workflows showing * fix notification example
This commit is contained in:
@@ -273,11 +273,15 @@ export default async function userCreatedHandler({
|
||||
const notificationModuleService = container.resolve(
|
||||
Modules.NOTIFICATION
|
||||
)
|
||||
const userModule = container.resolve(
|
||||
Modules.USER
|
||||
)
|
||||
const query = container.resolve("query")
|
||||
|
||||
const user = await userModule.retrieveUser(data.id)
|
||||
const { data: [user] } = await query.graph({
|
||||
entity: "user",
|
||||
fields: ["*"],
|
||||
filters: {
|
||||
id: data.id,
|
||||
}
|
||||
})
|
||||
|
||||
await notificationModuleService.createNotifications({
|
||||
to: user.email,
|
||||
|
||||
Reference in New Issue
Block a user