summary refs log tree commit diff
diff options
context:
space:
mode:
authorRealMANI <96433859+ImAaronFR@users.noreply.github.com>2022-02-11 08:43:46 +0330
committerGitHub <noreply@github.com>2022-02-11 08:13:46 +0300
commit29c90ea1ff15fd6f01f35227de2d3340eddad3e6 (patch)
tree28b809c351f429c96d7a2e8dc7c69ed9c5b9cd88
parentManually lock node to >15 (diff)
downloadserver-29c90ea1ff15fd6f01f35227de2d3340eddad3e6.tar.xz
Appropriate DB charset (#629)
causes bugs like turning emojis to "????"
-rw-r--r--util/src/util/Database.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/src/util/Database.ts b/util/src/util/Database.ts
index e8177093..9ab5d14c 100644
--- a/util/src/util/Database.ts
+++ b/util/src/util/Database.ts
@@ -25,6 +25,7 @@ export function initDatabase(): Promise<Connection> {
 	// @ts-ignore
 	promise = createConnection({
 		type,
+        charset: 'utf8mb4',
 		url: isSqlite ? undefined : dbConnectionString,
 		database: isSqlite ? dbConnectionString : undefined,
 		// @ts-ignore