getModi的时候,按createAt排序
This commit is contained in:
parent
57ebc434ba
commit
3399a27c3b
|
|
@ -385,7 +385,15 @@ class ListNode extends EntityNode {
|
|||
$in: ids,
|
||||
},
|
||||
iState: 'active',
|
||||
}
|
||||
},
|
||||
sorter: [
|
||||
{
|
||||
$attr: {
|
||||
$$createAt$$: 1,
|
||||
},
|
||||
$direction: 'asc',
|
||||
}
|
||||
],
|
||||
});
|
||||
if (modies.length > 0) {
|
||||
return createOperationsFromModies(modies);
|
||||
|
|
@ -1081,7 +1089,15 @@ class SingleNode extends EntityNode {
|
|||
entity: this.entity,
|
||||
entityId: this.id,
|
||||
iState: 'active',
|
||||
}
|
||||
},
|
||||
sorter: [
|
||||
{
|
||||
$attr: {
|
||||
$$createAt$$: 1,
|
||||
},
|
||||
$direction: 'asc',
|
||||
}
|
||||
],
|
||||
});
|
||||
if (modies.length > 0) {
|
||||
return createOperationsFromModies(modies);
|
||||
|
|
|
|||
|
|
@ -388,7 +388,15 @@ class ListNode extends EntityNode {
|
|||
$in: ids,
|
||||
},
|
||||
iState: 'active',
|
||||
}
|
||||
},
|
||||
sorter: [
|
||||
{
|
||||
$attr: {
|
||||
$$createAt$$: 1,
|
||||
},
|
||||
$direction: 'asc',
|
||||
}
|
||||
],
|
||||
});
|
||||
if (modies.length > 0) {
|
||||
return (0, modi_1.createOperationsFromModies)(modies);
|
||||
|
|
@ -1084,7 +1092,15 @@ class SingleNode extends EntityNode {
|
|||
entity: this.entity,
|
||||
entityId: this.id,
|
||||
iState: 'active',
|
||||
}
|
||||
},
|
||||
sorter: [
|
||||
{
|
||||
$attr: {
|
||||
$$createAt$$: 1,
|
||||
},
|
||||
$direction: 'asc',
|
||||
}
|
||||
],
|
||||
});
|
||||
if (modies.length > 0) {
|
||||
return (0, modi_1.createOperationsFromModies)(modies);
|
||||
|
|
|
|||
|
|
@ -497,7 +497,15 @@ class ListNode<
|
|||
$in: ids,
|
||||
},
|
||||
iState: 'active',
|
||||
}
|
||||
},
|
||||
sorter: [
|
||||
{
|
||||
$attr: {
|
||||
$$createAt$$: 1,
|
||||
},
|
||||
$direction: 'asc',
|
||||
}
|
||||
],
|
||||
});
|
||||
if (modies.length > 0) {
|
||||
return createOperationsFromModies(modies as ED['modi']['OpSchema'][]);
|
||||
|
|
@ -1350,7 +1358,15 @@ class SingleNode<ED extends EntityDict & BaseEntityDict,
|
|||
entity: this.entity as string,
|
||||
entityId: this.id,
|
||||
iState: 'active',
|
||||
}
|
||||
},
|
||||
sorter: [
|
||||
{
|
||||
$attr: {
|
||||
$$createAt$$: 1,
|
||||
},
|
||||
$direction: 'asc',
|
||||
}
|
||||
],
|
||||
});
|
||||
if (modies.length > 0) {
|
||||
return createOperationsFromModies(modies as ED['modi']['OpSchema'][]);
|
||||
|
|
|
|||
Loading…
Reference in New Issue