Skip to content

Commit

Permalink
feat: 删除节点时不更新其lastModifiedDate #1501 (#1502)
Browse files Browse the repository at this point in the history
  • Loading branch information
zacYL authored Nov 29, 2023
1 parent 3fb6df7 commit 88842da
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,9 @@ object NodeQueryHelper {
}

fun nodeDeleteUpdate(operator: String, deleteTime: LocalDateTime = LocalDateTime.now()): Update {
return update(operator).set(TNode::deleted.name, deleteTime)
return Update()
.set(TNode::lastModifiedBy.name, operator)
.set(TNode::deleted.name, deleteTime)
}

private fun update(operator: String): Update {
Expand Down

0 comments on commit 88842da

Please sign in to comment.