Fix a bug in emailing
authorNick Downing <downing.nick@gmail.com>
Sun, 21 Oct 2018 23:55:30 +0000 (10:55 +1100)
committerNick Downing <downing.nick@gmail.com>
Sun, 21 Oct 2018 23:55:30 +0000 (10:55 +1100)
Server.js

index 27cb06d..67f6335 100644 (file)
--- a/Server.js
+++ b/Server.js
@@ -54,7 +54,7 @@ Server.prototype.get_email = function(path) {
     async result => {
       let text = await fs_readFile(path, {encoding: 'utf-8'})
       console.log('getting', path, 'as email')
-      result.value = emailjs.this.connect(JSON.parse(text))
+      result.value = emailjs.server.connect(JSON.parse(text))
     }
   )
 }