Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ARSnova
arsnova-click-v2-backend
Commits
51dae9d8
Commit
51dae9d8
authored
Aug 22, 2019
by
Christopher Mark Fullarton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes tsc errors
parent
9180ecd1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/interfaces/questions/IQuestion.ts
src/interfaces/questions/IQuestion.ts
+2
-1
src/lib/cache/assets.ts
src/lib/cache/assets.ts
+1
-2
No files found.
src/interfaces/questions/IQuestion.ts
View file @
51dae9d8
import
{
QuestionType
}
from
'
../../enums/QuestionType
'
;
import
{
IAnswerBase
,
IAnswerEntity
}
from
'
../answeroptions/IAnswerEntity
'
;
import
{
IValidationStackTrace
}
from
'
../IValidationStackTrace
'
;
export
interface
IQuestionBase
{
readonly
TYPE
:
string
;
readonly
TYPE
:
QuestionType
;
displayAnswerText
:
boolean
;
timer
:
number
;
questionText
:
string
;
...
...
src/lib/cache/assets.ts
View file @
51dae9d8
import
{
Binary
}
from
'
bson
'
;
import
*
as
Hex
from
'
crypto-js/enc-hex
'
;
import
*
as
requestPromise
from
'
request-promise-native
'
;
import
AssetDAO
from
'
../../db/AssetDAO
'
;
...
...
@@ -53,7 +52,7 @@ export function MatchTextToAssetsDb(value: string): Promise<string> {
url
:
foundUrl
,
digest
,
mimeType
:
contentType
,
data
:
new
Binary
(
buffer
),
data
:
Buffer
.
from
(
buffer
),
});
const
result
=
assetValidator
.
validateSync
();
...
...
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