Merge pull request #1915 from gradido/fix-db-connection-charset

fix: Database Connection Charset to utf8mb4_unicode_ci
This commit is contained in:
Moriz Wahl 2022-05-23 16:10:37 +02:00 committed by GitHub
commit 2039e1a4ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,6 +20,9 @@ const connection = async (): Promise<Connection | null> => {
logger: new FileLogger('all', {
logPath: CONFIG.TYPEORM_LOGGING_RELATIVE_PATH,
}),
extra: {
charset: 'utf8mb4_unicode_ci',
},
})
} catch (error) {
// eslint-disable-next-line no-console