summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@proton.me>2023-04-13 20:13:58 -0400
committerPuyodead1 <puyodead@proton.me>2023-04-13 20:13:58 -0400
commita8a28542f73e949a088c48b0b52cddcaac249f6f (patch)
tree19599caf86477704fa9ab86d6c6dc341863a91a5 /src
parentUpdate openapi.json (diff)
downloadserver-a8a28542f73e949a088c48b0b52cddcaac249f6f.tar.xz
fix some types not being generated correctly
Diffstat (limited to 'src')
-rw-r--r--src/util/entities/User.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/util/entities/User.ts b/src/util/entities/User.ts
index 85a5015b..1b3eaaca 100644
--- a/src/util/entities/User.ts
+++ b/src/util/entities/User.ts
@@ -26,11 +26,11 @@ import {
 	OneToOne,
 } from "typeorm";
 import {
-	adjustEmail,
 	Config,
 	Email,
 	FieldErrors,
 	Snowflake,
+	adjustEmail,
 	trimSpecial,
 } from "..";
 import { BitField } from "../util/BitField";
@@ -109,8 +109,10 @@ export class User extends BaseClass {
 	@Column({ nullable: true })
 	banner?: string; // hash of the user banner
 
+	// TODO: Separate `User` and `UserProfile` models
+	// puyo: changed from [number, number] because it breaks openapi
 	@Column({ nullable: true, type: "simple-array" })
-	theme_colors?: [number, number]; // TODO: Separate `User` and `UserProfile` models
+	theme_colors?: number[];
 
 	@Column({ nullable: true })
 	pronouns?: string;