mirror of
https://github.com/penpot/penpot.git
synced 2026-03-19 08:53:39 +00:00
✨ Set correct order of filtering teams on migration function
This commit is contained in:
@@ -356,13 +356,13 @@
|
||||
|
||||
(run! process-team
|
||||
(->> (get-teams conn query pred)
|
||||
(take max-items)
|
||||
(filter (fn [team-id]
|
||||
(if (int? partitions)
|
||||
(= current-partition (-> (uuid/hash-int team-id)
|
||||
(mod partitions)
|
||||
(inc)))
|
||||
true)))))
|
||||
true)))
|
||||
(take max-items)))
|
||||
|
||||
;; Close and await tasks
|
||||
(pu/close! executor)))
|
||||
|
||||
Reference in New Issue
Block a user