Compare commits
No commits in common. "706372716eff993247bf545475e1337cfa2529f8" and "96da377e4e074d31ffb8661836f7b4e45f79ab53" have entirely different histories.
706372716e
...
96da377e4e
3 changed files with 4 additions and 4 deletions
|
@ -37,7 +37,7 @@
|
|||
|
||||
<label class="input-label">
|
||||
Channel Name
|
||||
<input class="input full-width" minlength="1" maxlength="32" bind:value={ channelName } />
|
||||
<input class="input full-width" bind:value={ channelName } />
|
||||
</label>
|
||||
|
||||
<div class="modal-footer">
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
|
||||
<label class="input-label">
|
||||
Channel Name
|
||||
<input class="input full-width" minlength="1" maxlength="32" bind:value={ channelName } />
|
||||
<input class="input full-width" bind:value={ channelName } />
|
||||
</label>
|
||||
|
||||
<div class="modal-footer">
|
||||
|
|
|
@ -12,7 +12,7 @@ const router = express.Router();
|
|||
router.post(
|
||||
"/",
|
||||
authenticateRoute(),
|
||||
body("name").isLength({ min: 1, max: 32 }).isAlphanumeric("en-US", { ignore: " _-" }),
|
||||
body("name").isLength({ min: 1, max: 40 }).isAlphanumeric("en-US", { ignore: " _-" }),
|
||||
async (req, res) => {
|
||||
const validationErrors = validationResult(req);
|
||||
if (!validationErrors.isEmpty()) {
|
||||
|
@ -43,7 +43,7 @@ router.post(
|
|||
router.put(
|
||||
"/:id",
|
||||
authenticateRoute(),
|
||||
body("name").isLength({ min: 1, max: 32 }).isAlphanumeric("en-US", { ignore: " _-" }),
|
||||
body("name").isLength({ min: 1, max: 40 }).isAlphanumeric("en-US", { ignore: " _-" }),
|
||||
param("id").isNumeric(),
|
||||
async (req, res) => {
|
||||
const validationErrors = validationResult(req);
|
||||
|
|
Loading…
Reference in a new issue