mirror of
https://github.com/logseq/logseq.git
synced 2026-05-29 23:19:38 +00:00
fix: retract more invalid data
This commit is contained in:
@@ -998,6 +998,16 @@
|
||||
|
||||
(defn- build-invalid-tx [entity eid]
|
||||
(cond
|
||||
(:block/schema entity)
|
||||
[[:db/retract eid :block/schema]]
|
||||
|
||||
(and (nil? (:block/uuid entity))
|
||||
(or (:block/title entity)
|
||||
(:logseq.property.asset/size entity)
|
||||
(:logseq.property.asset/type entity)
|
||||
(:logseq.property.asset/checksum entity)))
|
||||
[[:db/retractEntity eid]]
|
||||
|
||||
(and (:db/ident entity) (= "logseq.property.attribute" (namespace (:db/ident entity))))
|
||||
[[:db/retractEntity (:db/id entity)]]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user