summary refs log tree commit diff
path: root/util/src/tes.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-31 18:10:36 +0200
committerGitHub <noreply@github.com>2021-08-31 18:10:36 +0200
commitf654635d6a93e47255069d16b2f45b2f0a460d8b (patch)
treecfec2fdf2a37066197937dbca32ceb89a038477b /util/src/tes.ts
parentCreated list of all possible api errors and made them throwable in routes code (diff)
parentMerge branch 'typeorm' of https://github.com/fosscord/fosscord-api into typeorm (diff)
downloadserver-f654635d6a93e47255069d16b2f45b2f0a460d8b.tar.xz
Merge branch 'typeorm' into typeorm
Diffstat (limited to '')
-rw-r--r--util/src/tes.ts12
1 files changed, 8 insertions, 4 deletions
diff --git a/util/src/tes.ts b/util/src/tes.ts

index b469f1d8..e326dee1 100644 --- a/util/src/tes.ts +++ b/util/src/tes.ts
@@ -5,10 +5,14 @@ import { initDatabase } from "./util"; initDatabase().then(async (x) => { try { - const user = await new User( - { guilds: [], discriminator: "1", username: "test", flags: "0", public_flags: "0" }, - { id: "0" } - ).save(); + const user = await new User({ + guilds: [], + discriminator: "1", + username: "test", + flags: "0", + public_flags: "0", + id: "0", + }).save(); user.relationships = [new Relationship({ type: RelationshipType.friends })];