enum类型多加一种判断

This commit is contained in:
Xu Chang 2023-08-06 17:39:01 +08:00
parent 38ad56d449
commit f3608f9c31
3 changed files with 4 additions and 2 deletions

View File

@ -226,10 +226,10 @@ var RelationAuth = /** @class */ (function () {
filter: filter,
indexFrom: 0,
count: 10,
}, { dontCollect: true });
}, { dontCollect: true, blockTrigger: true });
var dealWithData_1 = function (rows) {
// 这里如果entity指向不同的实体一般出现这样的查询则其权限应当不由这条deduce路径处理
// 同上如果找到的行数大于1行说明deduce路径上的对象不确定也暂不处理,等遇到了再说 by Xc 20230725
// 同上如果找到的行数大于1行说明deduce路径上的对象不确定也暂不处理 by Xc 20230725
if (rows.length > 1 || rows.length === 0) {
if (process.env.NODE_ENV === 'development') {
console.warn("\u8FDB\u884Cdeduce\u63A8\u5BFC\u65F6\u627E\u5230\u4E86".concat(rows.length, "\u884C").concat(entity, "\u6570\u636E"));

View File

@ -35,6 +35,7 @@ export declare type Q_DateComparisonValue = Q_NumberComparisonValue;
export declare type Q_EnumComparisonValue<E> = E | OneOf<{
$in: E[];
$nin: E[];
$ne: E;
}>;
export declare type Q_ExistsValue = {
$exists: boolean;

View File

@ -47,6 +47,7 @@ export type Q_DateComparisonValue = Q_NumberComparisonValue;
export type Q_EnumComparisonValue<E> = E | OneOf<{
$in: E[];
$nin: E[];
$ne: E;
}>
export type Q_ExistsValue = {