egg_server/test/archive/getApiKey.ts

14 lines
337 B
TypeScript

import initAppConfig from "../../constant/config"
import DB from "../../db"
import { genContextManually } from "../../utils/genContext"
await initAppConfig()
const ctx = await genContextManually()
const dbInstance = new DB(ctx.logger)
const res = await dbInstance.apiKey.getWithApp("uwnpzb9hvoft28h")
console.log("🚀 ~ res", res)