diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-28 18:33:07 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-28 18:33:07 +0200 |
| commit | 0e9828454d4d782549ee7f072dad036917d07bfe (patch) | |
| tree | 22f451b7a76e17085fc30ddbe90ca8fd23e569bd | |
| parent | dfa0872dd7940b6d2759d8901274f459edf1b46e (diff) | |
| download | processor-0e9828454d4d782549ee7f072dad036917d07bfe.tar.gz processor-0e9828454d4d782549ee7f072dad036917d07bfe.zip | |
processor doesn't need the API token
| -rw-r--r-- | worker.js | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -7,10 +7,8 @@ var amqp = require("amqplib"), Bluebird = require("bluebird"), jsonapi = Bluebird.promisifyAll(require("superagent-jsonapify/common")); -var MADGLORY_TOKEN = process.env.MADGLORY_TOKEN, - RABBITMQ_URI = process.env.RABBITMQ_URI || "amqp://localhost", +var RABBITMQ_URI = process.env.RABBITMQ_URI || "amqp://localhost", DATABASE_URI = process.env.DATABASE_URI || "sqlite:///db.sqlite"; -if (MADGLORY_TOKEN == undefined) throw "Need an API token"; (async () => { let seq = new Seq(DATABASE_URI), |
