@jcbuisson/express-x 1.7.9 → 1.7.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/server.mjs +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jcbuisson/express-x",
3
- "version": "1.7.9",
3
+ "version": "1.7.10",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "src/index.mjs",
package/src/server.mjs CHANGED
@@ -125,7 +125,7 @@ export function expressX(prisma, config) {
125
125
 
126
126
  // publish event (websocket transport)
127
127
  if (config.WS_TRANSPORT && service.publishFunction) {
128
- const channelNames = await service.publishFunction(result, app)
128
+ const channelNames = await service.publishFunction(result, methodName)
129
129
  app.log('verbose', `publish channels ${service.name} ${methodName} ${channelNames}`)
130
130
  const connections = await app.prisma.Connection.findMany({})
131
131
  for (const channelName of channelNames) {