chore: fix lint
This commit is contained in:
parent
b8360313e8
commit
41c2aed7dc
17 changed files with 43 additions and 44 deletions
|
|
@ -110,7 +110,7 @@ export default define(meta, paramDef, async (ps, user) => {
|
|||
|
||||
if (exist.length) {
|
||||
if (poll.multiple) {
|
||||
if (exist.some(x => x.choice == ps.choice)) {
|
||||
if (exist.some(x => x.choice === ps.choice)) {
|
||||
throw new ApiError(meta.errors.alreadyVoted);
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue