fix: jwt verfiy
This commit is contained in:
2
patch/bootstrap.js
vendored
2
patch/bootstrap.js
vendored
@@ -9,7 +9,7 @@ Object.assign(global, { isDev: false })
|
||||
const result = ts.transpileModule(
|
||||
readFileSync(appConfigFile, { encoding: 'utf-8' }),
|
||||
{
|
||||
compilerOptions: { module: ts.ModuleKind.CommonJS },
|
||||
compilerOptions: { module: ts.ModuleKind.CommonJS, esModuleInterop: true },
|
||||
},
|
||||
)
|
||||
const complied = result.outputText
|
||||
|
||||
7
patch/v3.30.0.js
Normal file
7
patch/v3.30.0.js
Normal file
@@ -0,0 +1,7 @@
|
||||
// patch for version lower than v2.0.0-alpha.1
|
||||
|
||||
const bootstrap = require('./bootstrap')
|
||||
|
||||
bootstrap(async (db) => {
|
||||
await db.collection('users').updateMany({}, { $unset: { authCode: 1 } })
|
||||
})
|
||||
Reference in New Issue
Block a user