Signed-off-by: Walamana <joniogerg@gmail.com>
This commit is contained in:
Walamana 2017-12-05 15:34:16 +01:00
parent 8e12e94c19
commit 47d728b6b3

2
app.js
View File

@ -95,7 +95,7 @@ app.get("/user/:user/update", (req, res) => {
app.get("/gottesdienste", (req, res) => {
var groupid = req.params.groupid;
con.query("SELECT ID from gottesdienstgruppe ORDER BY ID DESC LIMIT 1", (err, result) => {
con.query("SELECT ID from gottesdienstGruppe ORDER BY ID DESC LIMIT 1", (err, result) => {
if (err) throw err;
con.query("SELECT * from gottesdienste WHERE GruppeID='" + result[0]["ID"] + "' ORDER BY `gottesdienste`.`Datum` ASC LIMIT 0 , 30 ", (err, result) => {
if (err) throw err;