mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-14 01:37:48 -05:00
return SHortnames in events
This commit is contained in:
@@ -23,7 +23,7 @@ exports.getEvent = async function (req, res, next) {
|
||||
|
||||
exports.getEvents = async function (req, res, next) {
|
||||
try {
|
||||
let events = await Event.find({},["title", "description", "startTime", "endTime", "expireTime", "numCalls", "createdAt"]).exec();
|
||||
let events = await Event.find({},["title", "description", "startTime", "endTime", "expireTime", "numCalls", "createdAt", "shortNames"]).exec();
|
||||
res.contentType('json');
|
||||
res.send(JSON.stringify(events));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user