backend: Update logging level and change export to const for recording validation schema
This commit is contained in:
parent
4ff00aad96
commit
caefdf704b
@ -28,7 +28,7 @@ export const getRecordings = async (req: Request, res: Response) => {
|
|||||||
const recordingService = container.get(RecordingService);
|
const recordingService = container.get(RecordingService);
|
||||||
const queryParams = req.query;
|
const queryParams = req.query;
|
||||||
|
|
||||||
logger.info('Getting all recordings');
|
logger.verbose('Getting all recordings');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await recordingService.getAllRecordings(queryParams);
|
const response = await recordingService.getAllRecordings(queryParams);
|
||||||
|
|||||||
@ -26,7 +26,7 @@ const GetRecordingSchema = z.object({
|
|||||||
recordingId: nonEmptySanitizedString('recordingId')
|
recordingId: nonEmptySanitizedString('recordingId')
|
||||||
});
|
});
|
||||||
|
|
||||||
export const BulkDeleteRecordingsSchema = z.object({
|
const BulkDeleteRecordingsSchema = z.object({
|
||||||
recordingIds: z.preprocess(
|
recordingIds: z.preprocess(
|
||||||
(arg) => {
|
(arg) => {
|
||||||
if (typeof arg === 'string') {
|
if (typeof arg === 'string') {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user