Skip to content

Commit

Permalink
Temporarily disable temp/voteonpoll and temp/removevoteonpoll
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian-Webster committed Sep 16, 2023
1 parent 1faec1e commit 3aba1cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions controllers/Temp.js
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,8 @@ class TempController {

static #voteonpoll = (userId, optionSelected, pollId) => {
return new Promise(resolve => {
return resolve(HTTPWTHandler.notImplemented('API functionality is temporarily disabled'))

if (typeof optionSelected !== 'string') {
return resolve(HTTPWTHandler.badInput(`optionSelected must be a string. Provided type: ${typeof optionSelected}`))
}
Expand Down Expand Up @@ -988,6 +990,8 @@ class TempController {

static #removevoteonpoll = (userId, pollId) => {
return new Promise(resolve => {
return resolve(HTTPWTHandler.notImplemented('API functionality is temporarily disabled'))

if (typeof pollId !== 'string') {
return resolve(HTTPWTHandler.badInput(`pollId must be a string. Provided type: ${typeof pollId}`))
}
Expand Down

0 comments on commit 3aba1cc

Please sign in to comment.