Login, logout and middleware updates
This commit is contained in:
parent
f552f8024f
commit
9fb3665ced
18 changed files with 96 additions and 50 deletions
|
|
@ -47,10 +47,10 @@ export const getOverviewTicketsAction = async (name: string) => {
|
|||
try {
|
||||
if (name === "Recent") {
|
||||
const recent = await executeREST({ path: "/api/v1/recent_view" });
|
||||
|
||||
for (const rec of recent) {
|
||||
const uniqueIDs = new Set(recent.map((rec: any) => rec.o_id));
|
||||
for (const id of uniqueIDs) {
|
||||
const tkt = await executeREST({
|
||||
path: `/api/v1/tickets/${rec.o_id}`,
|
||||
path: `/api/v1/tickets/${id}`,
|
||||
});
|
||||
tickets.push({
|
||||
...tkt,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue