Get stats command to console log the current users stats
This commit is contained in:
@@ -70,9 +70,11 @@ async function seedCalculator(standardsConfigId: string): Promise<void> {
|
||||
}
|
||||
|
||||
async function seedAccounts(): Promise<void> {
|
||||
const ACCOUNT_NAME = "Xominus";
|
||||
|
||||
const existing = await db.selectFrom("accounts")
|
||||
.select(["id"])
|
||||
.where("name", "=", DEFAULT_NAME)
|
||||
.where("name", "=", ACCOUNT_NAME)
|
||||
.executeTakeFirst();
|
||||
if (existing) {
|
||||
log.info({ id: existing.id }, "default account already seeded, skipping");
|
||||
@@ -81,9 +83,9 @@ async function seedAccounts(): Promise<void> {
|
||||
|
||||
const account = await db.insertInto("accounts")
|
||||
.values({
|
||||
name: DEFAULT_NAME,
|
||||
discord_id: "1521640671721685157",
|
||||
email: "outgrow_document040@simplelogin.com"
|
||||
name: ACCOUNT_NAME,
|
||||
discord_id: "1325552430942916731",
|
||||
email: "xominus@bladeandbrawn.com"
|
||||
})
|
||||
.returning("id")
|
||||
.executeTakeFirstOrThrow();
|
||||
@@ -92,7 +94,7 @@ async function seedAccounts(): Promise<void> {
|
||||
await db.insertInto("assessments")
|
||||
.values({
|
||||
account_id: account.id,
|
||||
name: DEFAULT_NAME,
|
||||
name: ACCOUNT_NAME,
|
||||
gender: Gender.Male,
|
||||
age: 25,
|
||||
weight: 80,
|
||||
|
||||
Reference in New Issue
Block a user