remove bson & pandora support

This commit is contained in:
undefined committed 2020-07-02 12:32:55 +08:00
1 parent 31622bc580
commit 8051bb958b
23 files changed
+660 -170

No files matched your search

+1 -1
View File
@@ -191,7 +191,7 @@ const RULES = {
};
/**
* @typedef {import('bson').ObjectID} ObjectID
* @typedef {import('mongodb').ObjectID} ObjectID
* @typedef {import('../interface').Tdoc} Tdoc
*/
+1 -1
View File
@@ -1,4 +1,4 @@
const { ObjectID } = require('bson');
const { ObjectID } = require('mongodb');
const problem = require('./problem');
const document = require('./document');
const contest = require('./contest');
+1 -1
View File
@@ -1,5 +1,5 @@
const assert = require('assert');
const { ObjectID } = require('bson');
const { ObjectID } = require('mongodb');
const db = require('../service/db');
const coll = db.collection('document');
+1 -1
View File
@@ -7,7 +7,7 @@ const coll = db.collection('domain');
/**
* @typedef {import('../interface').Pdoc} Pdoc
* @typedef {import('bson').ObjectID} ObjectID
* @typedef {import('mongodb').ObjectID} ObjectID
* @typedef {import('mongodb').Cursor} Cursor
*/
+2 -2
View File
@@ -1,4 +1,4 @@
const { ObjectId } = require('bson');
const { ObjectId } = require('mongodb');
const { STATUS_ACCEPTED } = require('./builtin').STATUS;
const file = require('./file');
const document = require('./document');
@@ -8,7 +8,7 @@ const readConfig = require('../lib/readConfig');
/**
* @typedef {import('../interface').Pdoc} Pdoc
* @typedef {import('bson').ObjectID} ObjectID
* @typedef {import('mongodb').ObjectID} ObjectID
* @typedef {import('mongodb').Cursor} Cursor
*/
+1 -1
View File
@@ -1,5 +1,5 @@
const _ = require('lodash');
const { ObjectID } = require('bson');
const { ObjectID } = require('mongodb');
const { STATUS_WAITING } = require('./builtin').STATUS;
const task = require('./task');
const problem = require('./problem');