|
|
@ -5,7 +5,7 @@ import catchError from '../../meta/helpers/catchError'; |
|
|
|
import { publicDataService } from '../../services'; |
|
|
|
import { publicDataService } from '../../services'; |
|
|
|
|
|
|
|
|
|
|
|
export async function dataList(req: Request, res: Response) { |
|
|
|
export async function dataList(req: Request, res: Response) { |
|
|
|
const pagedResponse = publicDataService.dataList({ |
|
|
|
const pagedResponse = await publicDataService.dataList({ |
|
|
|
query: req.query, |
|
|
|
query: req.query, |
|
|
|
password: req.headers?.['xc-password'] as string, |
|
|
|
password: req.headers?.['xc-password'] as string, |
|
|
|
sharedViewUuid: req.params.sharedViewUuid, |
|
|
|
sharedViewUuid: req.params.sharedViewUuid, |
|
|
@ -36,7 +36,7 @@ async function dataInsert(req: Request & { files: any[] }, res: Response) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
async function relDataList(req, res) { |
|
|
|
async function relDataList(req, res) { |
|
|
|
const pagedResponse = publicDataService.relDataList({ |
|
|
|
const pagedResponse = await publicDataService.relDataList({ |
|
|
|
query: req.query, |
|
|
|
query: req.query, |
|
|
|
password: req.headers?.['xc-password'] as string, |
|
|
|
password: req.headers?.['xc-password'] as string, |
|
|
|
sharedViewUuid: req.params.sharedViewUuid, |
|
|
|
sharedViewUuid: req.params.sharedViewUuid, |
|
|
|