mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-09 23:15:42 +00:00
Appropriate DB charset (#629)
causes bugs like turning emojis to "????"
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user