Linting.
This commit is contained in:
parent
c4f8d17a6e
commit
5f997ab836
|
@ -185,9 +185,7 @@ exports.getAllDbs = async () => {
|
||||||
*/
|
*/
|
||||||
exports.getAllApps = async ({ CouchDB, dev, all } = {}) => {
|
exports.getAllApps = async ({ CouchDB, dev, all } = {}) => {
|
||||||
let dbs = await exports.getAllDbs()
|
let dbs = await exports.getAllDbs()
|
||||||
const appDbNames = dbs.filter(dbName =>
|
const appDbNames = dbs.filter(dbName => dbName.startsWith(exports.APP_PREFIX))
|
||||||
dbName.startsWith(exports.APP_PREFIX)
|
|
||||||
)
|
|
||||||
const appPromises = appDbNames.map(db =>
|
const appPromises = appDbNames.map(db =>
|
||||||
// skip setup otherwise databases could be re-created
|
// skip setup otherwise databases could be re-created
|
||||||
new CouchDB(db, { skip_setup: true }).get(DocumentTypes.APP_METADATA)
|
new CouchDB(db, { skip_setup: true }).get(DocumentTypes.APP_METADATA)
|
||||||
|
|
|
@ -10,8 +10,6 @@ const {
|
||||||
const { Configs } = require("../../../constants")
|
const { Configs } = require("../../../constants")
|
||||||
const email = require("../../../utilities/email")
|
const email = require("../../../utilities/email")
|
||||||
const { upload, ObjectStoreBuckets } = require("@budibase/auth").objectStore
|
const { upload, ObjectStoreBuckets } = require("@budibase/auth").objectStore
|
||||||
const fetch = require("node-fetch")
|
|
||||||
const env = require("../../../environment")
|
|
||||||
|
|
||||||
const APP_PREFIX = "app_"
|
const APP_PREFIX = "app_"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue