mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-21 13:15:51 -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));
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ const ListEvents = (props) => {
|
||||
|
||||
const { data: events, isSuccess } = useGetEventsQuery();
|
||||
const navigate = useNavigate();
|
||||
|
||||
//<Table.Cell>{event.shortNames.map( shortName => <Link to={"/system/"+shortName}>{shortName}</Link> )}</Table.Cell>}
|
||||
return (
|
||||
<div>
|
||||
<NavBar />
|
||||
|
||||
Reference in New Issue
Block a user