You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In rocket.chat/_templates/service/new/service.ejs.t
the function startTracing() is called with a client variable, but client is not defined anywhere in the file. This causes a runtime error when the service starts.
Steps to reproduce
find the file Rocket.chat/_templates/service/new/service.ejs.t
find this line startTracing({ service: '<%= name %>', db: client });
Notice that client is never declared in this file.
Try running the service—it will fail due to the missing client variable.
Expected behavior:
The function should use db instead of client because db is already defined from getConnection().
Actual behavior:
Error: ReferenceError: client is not defined
The service fails at runtime because client is never declared.
Additional Context:
This is a small fix that requires replacing client with db in startTracing(). I’d be happy to submit a PR for this.
The text was updated successfully, but these errors were encountered:
In rocket.chat/_templates/service/new/service.ejs.t
the function startTracing() is called with a client variable, but client is not defined anywhere in the file. This causes a runtime error when the service starts.
Steps to reproduce
find the file Rocket.chat/_templates/service/new/service.ejs.t
find this line startTracing({ service: '<%= name %>', db: client });
Notice that client is never declared in this file.
Try running the service—it will fail due to the missing client variable.
Expected behavior:
The function should use db instead of client because db is already defined from getConnection().
Actual behavior:
Error: ReferenceError: client is not defined
The service fails at runtime because client is never declared.
Additional Context:
This is a small fix that requires replacing client with db in startTracing(). I’d be happy to submit a PR for this.
The text was updated successfully, but these errors were encountered: