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
commitef5df63501fa6ffee170150816878a14cd8a6cdc (patch)
tree1c9708b20b8e49d0cae48cba1030558dbbb07db8 /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-ef5df63501fa6ffee170150816878a14cd8a6cdc.tar.xz
Merge branch 'typeorm' into typeorm
Diffstat (limited to 'util/src/tes.ts')
-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 })];