oneuptime/init-script/scripts/3.0.9312.ts
Nawaz Dhandala afd62f21ce
fix lint
2022-03-22 14:33:55 +00:00

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;