import { PSA } from "@monkeytype/schemas/psas";
import * as db from "../init/db";
import { WithObjectId } from "../utils/misc";

export type DBPSA = WithObjectId<PSA>;

export async function get(): Promise<DBPSA[]> {
  return await db.collection<DBPSA>("psa").find().toArray();
}
