0
Fork 0
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:
Andrey Antukh 2024-01-25 09:49:40 +01:00
parent 0d5c1811cf
commit e6766bac8f

View file

@ -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)))