Update:Listening sessions table for multi-select, sorting and rows per page

- Updated get all sessions API endpoint to include sorting
- Added sessions API endpoint for batch deleting
This commit is contained in:
advplyr 2023-12-21 13:52:42 -06:00
parent 46ec59c74e
commit 76119445a3
25 changed files with 375 additions and 62 deletions

View file

@ -1,4 +1,5 @@
const Path = require('path')
const uuid = require('uuid')
const Logger = require('../Logger')
const { parseString } = require("xml2js")
const areEquivalent = require('./areEquivalent')
@ -220,4 +221,15 @@ module.exports.validateUrl = (rawUrl) => {
Logger.error(`Invalid URL "${rawUrl}"`, error)
return null
}
}
/**
* Check if a string is a valid UUID
*
* @param {string} str
* @returns {boolean}
*/
module.exports.isUUID = (str) => {
if (!str || typeof str !== 'string') return false
return uuid.validate(str)
}