mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-20 04:37:52 -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) {
|
exports.getEvents = async function (req, res, next) {
|
||||||
try {
|
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.contentType('json');
|
||||||
res.send(JSON.stringify(events));
|
res.send(JSON.stringify(events));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ const ListEvents = (props) => {
|
|||||||
|
|
||||||
const { data: events, isSuccess } = useGetEventsQuery();
|
const { data: events, isSuccess } = useGetEventsQuery();
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
//<Table.Cell>{event.shortNames.map( shortName => <Link to={"/system/"+shortName}>{shortName}</Link> )}</Table.Cell>}
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<NavBar />
|
<NavBar />
|
||||||
|
|||||||
Reference in New Issue
Block a user