summary refs log tree commit diff
path: root/util/src/entities/Config.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-04 22:43:51 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-04 22:43:51 +0200
commit0914f424ceec738762e17a8ee787d589c8a8cbcb (patch)
treecbca25e5637833ec7c71d4a8a24091fe61fccad8 /util/src/entities/Config.ts
parentMerge branch 'master' of http://github.com/fosscord/fosscord-server (diff)
downloadserver-0914f424ceec738762e17a8ee787d589c8a8cbcb.tar.xz
:sparkles: generalize primary column to work with mongodb object id
Diffstat (limited to 'util/src/entities/Config.ts')
-rw-r--r--util/src/entities/Config.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/src/entities/Config.ts b/util/src/entities/Config.ts
index edce92a9..28926233 100644
--- a/util/src/entities/Config.ts
+++ b/util/src/entities/Config.ts
@@ -1,11 +1,11 @@
-import { Column, Entity, JoinColumn, ManyToOne, PrimaryColumn } from "typeorm";
-import { BaseClass, BaseClassWithoutId } from "./BaseClass";
+import { Column, Entity } from "typeorm";
+import { BaseClassWithoutId, PrimaryIdColumn } from "./BaseClass";
 import crypto from "crypto";
 import { Snowflake } from "../util/Snowflake";
 
 @Entity("config")
 export class ConfigEntity extends BaseClassWithoutId {
-	@PrimaryColumn()
+	@PrimaryIdColumn()
 	key: string;
 
 	@Column({ type: "simple-json", nullable: true })
@@ -144,7 +144,7 @@ export interface ConfigValue {
 		useDefaultAsOptimal: boolean;
 		available: Region[];
 	};
-	
+
 	guild: {
 		showAllGuildsInDiscovery: boolean;
 	};
@@ -299,7 +299,7 @@ export const DefaultConfigOptions: ConfigValue = {
 			},
 		],
 	},
-	
+
 	guild: {
 		showAllGuildsInDiscovery: false,
 	},