mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 23:01:09 +03:00
fix lint issues
This commit is contained in:
@@ -41,7 +41,7 @@ export const init = async (): Promise<void> => {
|
|||||||
migrationsRun: false,
|
migrationsRun: false,
|
||||||
entities: Object.values(entities),
|
entities: Object.values(entities),
|
||||||
migrations: mysqlMigrations,
|
migrations: mysqlMigrations,
|
||||||
ssl: getDatabaseSSLFromEnv(),
|
ssl: getDatabaseSSLFromEnv()
|
||||||
})
|
})
|
||||||
break
|
break
|
||||||
case 'postgres':
|
case 'postgres':
|
||||||
@@ -85,9 +85,9 @@ const getDatabaseSSLFromEnv = () => {
|
|||||||
return {
|
return {
|
||||||
rejectUnauthorized: false,
|
rejectUnauthorized: false,
|
||||||
ca: Buffer.from(process.env.DATABASE_SSL_KEY_BASE64, 'base64')
|
ca: Buffer.from(process.env.DATABASE_SSL_KEY_BASE64, 'base64')
|
||||||
};
|
}
|
||||||
} else if (process.env.DATABASE_SSL === 'true') {
|
} else if (process.env.DATABASE_SSL === 'true') {
|
||||||
return true;
|
return true
|
||||||
}
|
}
|
||||||
return {};
|
return {}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user