mirror of
https://github.com/penpot/penpot.git
synced 2025-01-23 23:18:48 -05: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
|
||||
(->> (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)))
|
||||
|
|
Loading…
Add table
Reference in a new issue