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:
Shahed Nasser
2025-05-15 10:47:45 +03:00
committed by GitHub
parent 3ddcd872a0
commit 30aa317ff1
11 changed files with 2874 additions and 2854 deletions

View File

@@ -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,