[web] Upgrade Prettier to match version in monorepo root (#6231)

GitOrigin-RevId: 02f97af1b9704782eee77a0b7dfc477ada23e34d
This commit is contained in:
Alf Eaton
2022-01-11 09:03:23 +00:00
committed by Copybot
parent f3f0be5c56
commit 50df230846
153 changed files with 2151 additions and 2232 deletions
@@ -9,10 +9,11 @@ async function main() {
console.log('Deleting notifications of institution', institutionId)
const preview = await InstitutionsManager.promises.clearInstitutionNotifications(
institutionId,
true
)
const preview =
await InstitutionsManager.promises.clearInstitutionNotifications(
institutionId,
true
)
console.log('--- Preview ---')
console.log(JSON.stringify(preview, null, 4))
console.log('---------------')
@@ -25,10 +26,11 @@ async function main() {
console.log('Exit in the next 10s in case these numbers are off.')
await sleep(10 * 1000)
const cleared = await InstitutionsManager.promises.clearInstitutionNotifications(
institutionId,
false
)
const cleared =
await InstitutionsManager.promises.clearInstitutionNotifications(
institutionId,
false
)
console.log('--- Cleared ---')
console.log(JSON.stringify(cleared, null, 4))
console.log('---------------')
@@ -17,9 +17,8 @@ async function countFiles() {
if (!project) {
throw new Errors.NotFoundError('project not found')
}
const { files, docs } = ProjectEntityHandler.getAllEntitiesFromProject(
project
)
const { files, docs } =
ProjectEntityHandler.getAllEntitiesFromProject(project)
console.error(
projectId,
files.length,
@@ -9,8 +9,8 @@ const {
ObjectId,
waitForDb,
} = require('../../app/src/infrastructure/mongodb')
const DocstoreManager = require('../../app/src/Features/Docstore/DocstoreManager')
.promises
const DocstoreManager =
require('../../app/src/Features/Docstore/DocstoreManager').promises
const argv = minimist(process.argv.slice(2))
const commit = argv.commit !== undefined
@@ -30,7 +30,8 @@ const ID_WHEN_FULL_PROJECT_HISTORY_ENABLED = '5a8d8a370000000000000000'
const OBJECT_ID_WHEN_FULL_PROJECT_HISTORY_ENABLED = new ObjectId(
ID_WHEN_FULL_PROJECT_HISTORY_ENABLED
)
const DATETIME_WHEN_FULL_PROJECT_HISTORY_ENABLED = OBJECT_ID_WHEN_FULL_PROJECT_HISTORY_ENABLED.getTimestamp()
const DATETIME_WHEN_FULL_PROJECT_HISTORY_ENABLED =
OBJECT_ID_WHEN_FULL_PROJECT_HISTORY_ENABLED.getTimestamp()
async function processBatch(_, projects) {
await promiseMapWithLimit(WRITE_CONCURRENCY, projects, processProject)
@@ -32,7 +32,8 @@ const ID_WHEN_FULL_PROJECT_HISTORY_ENABLED = '5a8d8a370000000000000000'
const OBJECT_ID_WHEN_FULL_PROJECT_HISTORY_ENABLED = new ObjectId(
ID_WHEN_FULL_PROJECT_HISTORY_ENABLED
)
const DATETIME_WHEN_FULL_PROJECT_HISTORY_ENABLED = OBJECT_ID_WHEN_FULL_PROJECT_HISTORY_ENABLED.getTimestamp()
const DATETIME_WHEN_FULL_PROJECT_HISTORY_ENABLED =
OBJECT_ID_WHEN_FULL_PROJECT_HISTORY_ENABLED.getTimestamp()
// set a default BATCH_LAST_ID at our cutoff point if none set
// we still check against this cut off point later, even if
@@ -3,8 +3,8 @@
const fs = require('fs')
const minimist = require('minimist')
const InstitutionsAPI = require('../../app/src/Features/Institutions/InstitutionsAPI')
.promises
const InstitutionsAPI =
require('../../app/src/Features/Institutions/InstitutionsAPI').promises
const argv = minimist(process.argv.slice(2))
const commit = argv.commit !== undefined
@@ -175,12 +175,8 @@ function loadCachedEntitlements(cachedEntitlementsFilename) {
for (const cachedEntitlementLine of cachedEntitlementsData) {
// this is safe because comma is not an allowed value for any column
const [
userId,
email,
hasEntitlement,
providerId,
] = cachedEntitlementLine.split(',')
const [userId, email, hasEntitlement, providerId] =
cachedEntitlementLine.split(',')
let hasEntitlementBoolean
if (ignoreNulls) {
hasEntitlementBoolean = hasEntitlement === 't'