refactor(models): 移除initializeModels中的initAssociations调用
将initAssociations从initializeModels中移出,由外部模块显式调用以提供更好的控制
This commit is contained in:
@@ -182,8 +182,6 @@ const initializeModels = async () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
initAssociations();
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
initializeModels,
|
initializeModels,
|
||||||
initAssociations,
|
initAssociations,
|
||||||
|
|||||||
Reference in New Issue
Block a user