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
b0ac8ae8
Commit
b0ac8ae8
authored
Aug 07, 2019
by
Никита Бесшапошников
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added defines to db
parent
9479d3b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
0 deletions
+45
-0
defines.js
defines.js
+43
-0
index.js
index.js
+2
-0
No files found.
defines.js
0 → 100644
View file @
b0ac8ae8
"
use strict
"
;
module
.
exports
.
SOLUTION_STATUS
=
{
UPLOADED
:
"
uploaded
"
,
TESTING
:
"
testing
"
,
PASSED
:
"
passed
"
,
COMPILATION_ERROR
:
"
compilation_error
"
,
NOT_PASSED
:
"
not_passed
"
,
NOT_TESTED
:
"
not_tested
"
,
INTERNAL_ERROR
:
"
error
"
};
module
.
exports
.
TESTING_TYPE
=
{
TEXT_COMPARE
:
"
text_compare
"
,
BYTE_COMPARE
:
"
byte_compare
"
,
CUSTOM
:
"
custom
"
,
EXTERNAL
:
"
external
"
,
NOT_TEST
:
"
not_test
"
};
module
.
exports
.
PROCESS_EVENT
=
{
STDOUT
:
"
stdout
"
,
STDERR
:
"
stderr
"
,
CLOSE
:
"
close
"
};
module
.
exports
.
PROGRAM_FILE_TYPE
=
{
RAW
:
"
raw
"
,
ZIP_ARCHIVE
:
"
zip
"
,
TAR_ARCHIVE
:
"
tar
"
,
TAR_GZ_ARCHIVE
:
"
tar.gz
"
};
module
.
exports
.
TEST_TYPE
=
{
PROGRAM
:
"
program
"
,
FILE
:
"
file
"
,
PROJECT
:
"
project
"
};
index.js
View file @
b0ac8ae8
...
...
@@ -11,6 +11,8 @@ mongoose.Promise = global.Promise;
module
.
exports
.
connection
=
null
;
module
.
exports
.
defines
=
require
(
'
./defines
'
)
module
.
exports
=
(
connectionUri
,
relaxed
)
=>
{
if
(
relaxed
===
undefined
)
mongoose
.
relaxed
=
true
;
...
...
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