Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
arsnova-click-v2-backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
ARSnova
arsnova-click-v2-backend
Commits
84b3bd32
Commit
84b3bd32
authored
Aug 31, 2019
by
Christopher Mark Fullarton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code rearranging
parent
2b9fa7ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
src/routers/rest/QuizRouter.ts
src/routers/rest/QuizRouter.ts
+7
-4
No files found.
src/routers/rest/QuizRouter.ts
View file @
84b3bd32
...
...
@@ -78,10 +78,13 @@ export class QuizRouter extends AbstractRouter {
return
{
status
:
StatusProtocol
.
Success
,
step
:
quiz
?
[
QuizState
.
Active
,
QuizState
.
Running
].
includes
(
quiz
.
state
)
?
MessageProtocol
.
Available
:
quiz
.
privateKey
===
token
?
MessageProtocol
.
Editable
:
MessageProtocol
.
AlreadyTaken
:
MessageProtocol
.
Unavailable
,
step
:
quiz
?
//
[
QuizState
.
Active
,
QuizState
.
Running
].
includes
(
quiz
.
state
)
?
//
MessageProtocol
.
Available
:
//
quiz
.
privateKey
===
token
?
//
MessageProtocol
.
Editable
:
//
MessageProtocol
.
AlreadyTaken
:
//
MessageProtocol
.
Unavailable
,
//
payload
,
};
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment