Added defines to db

parent 9479d3b2
"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"
};
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment