mirror of
https://github.com/penpot/penpot.git
synced 2025-05-25 22:46:13 +02:00
✨ Set correct order of filtering teams on migration function
This commit is contained in:
parent
0d5c1811cf
commit
e6766bac8f
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue