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
M
mirera-db
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
mirera
mirera-db
Commits
9479d3b2
Commit
9479d3b2
authored
Aug 07, 2019
by
Никита Бесшапошников
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added external tester filed to task
parent
0fedf4ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
task.js
task.js
+4
-1
No files found.
task.js
View file @
9479d3b2
...
...
@@ -73,6 +73,9 @@ const TaskSchema = new mongoose.Schema({
type
:
mongoose
.
Schema
.
Types
.
ObjectId
,
ref
:
'
CustomTester
'
},
externalTester
:
{
type
:
String
},
inputTestProgram
:
{
type
:
mongoose
.
Schema
.
Types
.
ObjectId
,
ref
:
'
Program
'
...
...
@@ -261,4 +264,4 @@ module.exports.removeTest = (taskId, testIndex) => {
.
then
(()
=>
{
return
Task
.
findOneAndUpdate
({
_id
:
taskId
},
{
$pull
:
{
"
tests
"
:
null
}});
});
};
\ No newline at end of file
};
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