diff options
author | RealMANI <96433859+ImAaronFR@users.noreply.github.com> | 2022-02-11 08:43:46 +0330 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-11 08:13:46 +0300 |
commit | 29c90ea1ff15fd6f01f35227de2d3340eddad3e6 (patch) | |
tree | 28b809c351f429c96d7a2e8dc7c69ed9c5b9cd88 | |
parent | Manually lock node to >15 (diff) | |
download | server-29c90ea1ff15fd6f01f35227de2d3340eddad3e6.tar.xz |
Appropriate DB charset (#629)
causes bugs like turning emojis to "????"
-rw-r--r-- | util/src/util/Database.ts | 1 |
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 |