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