Fix current gather API

This commit is contained in:
Chris Blanchard 2016-04-01 14:48:12 +01:00
parent f19b664917
commit 22567b77c7

View file

@ -3,7 +3,7 @@
const path = require("path");
const winston = require("winston");
const config = require("./config.js");
const Gather = require("../lib/gather/gather_pool").get("public");
const GatherPool = require("../lib/gather/gather_pool");
const mongoose = require("mongoose");
const Message = mongoose.model("Message");
const cors = require("cors");
@ -26,8 +26,7 @@ module.exports = app => {
});
app.get("/gathers/current", (request, response) => {
let gather = Gather.current;
response.status(200).json(gather.toJson());
response.status(200).json(GatherPool.get("classic").current.toJson());
});
app.get("/api/messages", (request, response) => {