0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

🐛 Fixed error when sending messages via bootstrap socket

refs https://github.com/TryGhost/Ghost/issues/13837

- a [refactor](9fa8800b9d) in `@tryghost/bootstrap-socket` changed the signature of the method it exprots, but the use of this
  library wasn't updated in Ghost
- therefore, the library was trying to send the `@tryghost/logging` library, which caused
  errors with Ghost-CLI down the line, as mentioned in the issue
- this commit updates the method signature to match what is expected
This commit is contained in:
Daniel Lockyer 2021-12-06 08:04:26 +00:00
parent 0ce992914f
commit ec28478435
No known key found for this signature in database
GPG key ID: D21186F0B47295AD

View file

@ -53,7 +53,7 @@ async function notify(type, error = null) {
let socketAddress = config.get('bootstrap-socket');
if (socketAddress) {
const bootstrapSocket = require('@tryghost/bootstrap-socket');
return bootstrapSocket.connectAndSend(socketAddress, logging, message);
return bootstrapSocket.connectAndSend(socketAddress, message);
}
return Promise.resolve();