mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 07:42:10 +00:00
17 lines
329 B
TypeScript
17 lines
329 B
TypeScript
import { updateMany } from '../util/db';
|
|
|
|
const userCollection = 'users';
|
|
|
|
// add admin mode fields
|
|
async function run() {
|
|
await updateMany(
|
|
userCollection,
|
|
{ isAdminMode: { $exists: false } },
|
|
{ isAdminMode: false, cachedPassword: null }
|
|
);
|
|
|
|
return `Script completed`;
|
|
}
|
|
|
|
export default run;
|