/ opencodehub / make-admin.ts
JustAPI Bot fix: comprehensive UI, docs, security, and deployment improvements · 7/14/2026
381467d
9 lines · 225 Bytes
1
2
3
4
5
6
7
8
9
import { getDatabase, schema } from "./src/db";
async function main() {
  const db = getDatabase();
  await db.update(schema.users).set({ isAdmin: true });
  console.log("Made all users admin.");
  process.exit(0);
}
main();