summary refs log tree commit diff
path: root/src/util/entities/Relationship.ts
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-20 03:27:03 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-20 03:27:03 +0200
commit04dea8d788acfaf485f4aa9ad255e39f6aac2a08 (patch)
tree2a61e45ef6f313012a585a0a80c1fa5bfe3ddae8 /src/util/entities/Relationship.ts
parentFix merge conflicts (diff)
downloadserver-04dea8d788acfaf485f4aa9ad255e39f6aac2a08.tar.xz
prettier
Diffstat (limited to 'src/util/entities/Relationship.ts')
-rw-r--r--src/util/entities/Relationship.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/entities/Relationship.ts b/src/util/entities/Relationship.ts
index c3592c76..b55d9e64 100644
--- a/src/util/entities/Relationship.ts
+++ b/src/util/entities/Relationship.ts
@@ -6,7 +6,7 @@ export enum RelationshipType {
 	outgoing = 4,
 	incoming = 3,
 	blocked = 2,
-	friends = 1,
+	friends = 1
 }
 
 @Entity("relationships")
@@ -18,7 +18,7 @@ export class Relationship extends BaseClass {
 
 	@JoinColumn({ name: "from_id" })
 	@ManyToOne(() => User, {
-		onDelete: "CASCADE",
+		onDelete: "CASCADE"
 	})
 	from: User;
 
@@ -28,7 +28,7 @@ export class Relationship extends BaseClass {
 
 	@JoinColumn({ name: "to_id" })
 	@ManyToOne(() => User, {
-		onDelete: "CASCADE",
+		onDelete: "CASCADE"
 	})
 	to: User;
 
@@ -43,7 +43,7 @@ export class Relationship extends BaseClass {
 			id: this.to?.id || this.to_id,
 			type: this.type,
 			nickname: this.nickname,
-			user: this.to?.toPublicUser(),
+			user: this.to?.toPublicUser()
 		};
 	}
 }