@jcbuisson/express-x 1.5.34 → 1.5.35
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.
- package/package.json +1 -1
- package/src/server.mjs +2 -2
package/package.json
CHANGED
package/src/server.mjs
CHANGED
|
@@ -123,7 +123,7 @@ export function expressX(prisma, options = {}) {
|
|
|
123
123
|
})
|
|
124
124
|
|
|
125
125
|
for (const connection of connectionList) {
|
|
126
|
-
const trimmedResult = JSON.stringify(result).slice(0, 300)
|
|
126
|
+
const trimmedResult = result ? JSON.stringify(result).slice(0, 300) : ''
|
|
127
127
|
app.log('verbose', `emit to ${connection.id} ${service.name} ${methodName} ${trimmedResult}`)
|
|
128
128
|
const socket = cnx2Socket[connection.id]
|
|
129
129
|
console.log()
|
|
@@ -367,7 +367,7 @@ export function expressX(prisma, options = {}) {
|
|
|
367
367
|
|
|
368
368
|
try {
|
|
369
369
|
const result = await serviceMethod(context, ...args)
|
|
370
|
-
const trimmedResult = JSON.stringify(result).slice(0, 300)
|
|
370
|
+
const trimmedResult = result ? JSON.stringify(result).slice(0, 300) : ''
|
|
371
371
|
app.log('verbose', `client-response ${uid} ${trimmedResult}`)
|
|
372
372
|
socket.emit('client-response', {
|
|
373
373
|
uid,
|