fix: ServerConfiguration中的database改为可选,实际未使用,在backend从oak-db引用配置类型,处理动态导入
This commit is contained in:
parent
65beea7fb7
commit
a1e851e186
|
|
@ -18,7 +18,7 @@ export type RedisConfiguration = {
|
|||
* 后台配置
|
||||
*/
|
||||
export type ServerConfiguration = {
|
||||
database: {
|
||||
database?: {
|
||||
type: 'mysql';
|
||||
host: string;
|
||||
database: string;
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ export type RedisConfiguration = {
|
|||
* 后台配置
|
||||
*/
|
||||
export type ServerConfiguration = {
|
||||
database: {
|
||||
database?: { // 改为可选(兼容老项目),实际不再在这里使用,backend从oak-db引用配置类型,处理动态导入
|
||||
type: 'mysql',
|
||||
host: string;
|
||||
database: string;
|
||||
|
|
|
|||
Loading…
Reference in New Issue