Merge pull request #3185 from overleaf/jpa-normalize-mongo-imports

[misc] normalize mongo imports

GitOrigin-RevId: ac653d9982e0d36736b90f4c03d4c00be88ea76a
This commit is contained in:
Jakob Ackermann
2020-09-25 02:04:20 +00:00
committed by Copybot
parent 2977d6ab9b
commit 018a44eeb5
69 changed files with 63 additions and 86 deletions
+1 -2
View File
@@ -1,5 +1,4 @@
const mongojs = require('../app/src/infrastructure/mongojs')
const { db } = mongojs
const { db } = require('../app/src/infrastructure/mongojs')
const async = require('async')
const minilist = require('minimist')
@@ -1,5 +1,4 @@
const mongojs = require('../app/src/infrastructure/mongojs')
const { db } = mongojs
const { db } = require('../app/src/infrastructure/mongojs')
const async = require('async')
const minilist = require('minimist')
@@ -1,5 +1,4 @@
const mongojs = require('../../app/src/infrastructure/mongojs')
const { db } = mongojs
const { db } = require('../../app/src/infrastructure/mongojs')
const keys = { 'tokens.readAndWritePrefix': 1 }
const opts = {
@@ -1,5 +1,4 @@
const mongojs = require('../../app/src/infrastructure/mongojs')
const { db, ObjectId } = mongojs
const { db, ObjectId } = require('../../app/src/infrastructure/mongojs')
const Async = require('async')
const projectIds = [
@@ -1,5 +1,4 @@
const mongojs = require('../../app/src/infrastructure/mongojs')
const { db } = mongojs
const { db } = require('../../app/src/infrastructure/mongojs')
const Async = require('async')
db.projects.find(
@@ -1,5 +1,4 @@
const mongojs = require('../../app/src/infrastructure/mongojs')
const { db } = mongojs
const { db } = require('../../app/src/infrastructure/mongojs')
const async = require('async')
db.deletedSubscriptions.aggregate(
@@ -1,7 +1,6 @@
const NotificationsHandler = require('../../app/src/Features/Notifications/NotificationsHandler')
const mongojs = require('../../app/src/infrastructure/mongojs')
const { db } = mongojs
const { db } = require('../../app/src/infrastructure/mongojs')
const async = require('async')
const templateKey = 'wfh_2020_upgrade_offer'
@@ -1,7 +1,6 @@
const NotificationsHandler = require('../../app/src/Features/Notifications/NotificationsHandler')
const mongojs = require('../../app/src/infrastructure/mongojs')
const { db } = mongojs
const { db } = require('../../app/src/infrastructure/mongojs')
const async = require('async')
const templateKey = 'wfh_2020_upgrade_offer'