more data in the ministranten json
Signed-off-by: Walamana <joniogerg@gmail.com>
This commit is contained in:
parent
19d3dc3115
commit
a2955563a6
6
app.js
6
app.js
@ -143,7 +143,11 @@ var attachToMini = function(mini, pos, then){
|
|||||||
mini.registered = [];
|
mini.registered = [];
|
||||||
con.query("SELECT * FROM `" + mini.Name.toLowerCase() + "` LIMIT 0 , 30", (err, data) => {
|
con.query("SELECT * FROM `" + mini.Name.toLowerCase() + "` LIMIT 0 , 30", (err, data) => {
|
||||||
for(var j = 0; j < data.length; j++){
|
for(var j = 0; j < data.length; j++){
|
||||||
mini.registered[data[j]["GottesdienstIDs"]] = data[j]["Anwesend"];
|
|
||||||
|
mini.registered[data[j]["GottesdienstIDs"]] = {
|
||||||
|
id: data[j]["GottesdienstIDs"],
|
||||||
|
value: data[j]["Anwesend"]
|
||||||
|
};
|
||||||
}
|
}
|
||||||
then(mini, pos);
|
then(mini, pos);
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user