cache判断error的情况写错了

This commit is contained in:
Xu Chang 2024-03-02 15:25:23 +08:00
parent dcd4b48401
commit 19d9b93186
4 changed files with 6 additions and 6 deletions

View File

@ -282,7 +282,7 @@ export class Cache extends Feature {
catch (err) {
this.rollback();
// 现在如果cache中属性缺失会报OakRowUnexistedException待进一步细化
if (!(err instanceof OakUserException) || !(err instanceof OakRowUnexistedException)) {
if (!(err instanceof OakUserException) && !(err instanceof OakRowUnexistedException)) {
throw err;
}
return err;

View File

@ -285,7 +285,7 @@ class Cache extends Feature_1.Feature {
catch (err) {
this.rollback();
// 现在如果cache中属性缺失会报OakRowUnexistedException待进一步细化
if (!(err instanceof Exception_1.OakUserException) || !(err instanceof Exception_1.OakRowUnexistedException)) {
if (!(err instanceof Exception_1.OakUserException) && !(err instanceof Exception_1.OakRowUnexistedException)) {
throw err;
}
return err;

View File

@ -23,7 +23,7 @@
"node-schedule": "^2.1.1",
"oak-common-aspect": "file:../oak-common-aspect",
"oak-domain": "file:../oak-domain",
"oak-memory-tree-store": "^file:../oak-memory-tree-store",
"oak-memory-tree-store": "file:../oak-memory-tree-store",
"ol": "^7.3.0",
"react-native-device-info": "^10.12.0",
"react-native-localize": "^3.0.4",
@ -36,7 +36,7 @@
},
"peerDependencies": {
"@ant-design/icons": ">=5.2.6",
"antd": ">=5.11.0",
"antd": ">=5.13.0",
"antd-mobile": ">=5.33.0",
"antd-mobile-icons": ">=0.3.0",
"react": ">=18.2.0",
@ -63,7 +63,7 @@
"@types/react-native": "^0.72.8",
"@types/uuid": "^9.0.6",
"@types/wechat-miniprogram": "^3.4.5",
"antd": "5.11.0",
"antd": "^5.13.3",
"antd-mobile": "5.33.0",
"antd-mobile-icons": "0.3.0",
"assert": "^2.0.0",

View File

@ -401,7 +401,7 @@ export class Cache<
} catch (err) {
this.rollback();
// 现在如果cache中属性缺失会报OakRowUnexistedException待进一步细化
if (!(err instanceof OakUserException) || !(err instanceof OakRowUnexistedException)) {
if (!(err instanceof OakUserException) && !(err instanceof OakRowUnexistedException)) {
throw err;
}
return err as Error;