From 97b15006fd83b2ca16154d62d8efaba20bc3fe0c Mon Sep 17 00:00:00 2001 From: Blade Barringer Date: Sun, 2 Oct 2016 09:31:28 -0500 Subject: [PATCH] chore: adjust webhook migration to sort webhooks properly --- migrations/20161002_add_missing_webhook_type.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/migrations/20161002_add_missing_webhook_type.js b/migrations/20161002_add_missing_webhook_type.js index 4f8aabd04a..f3f7b93422 100644 --- a/migrations/20161002_add_missing_webhook_type.js +++ b/migrations/20161002_add_missing_webhook_type.js @@ -72,6 +72,8 @@ function findUsersWithWebhooks () { }; return webhook; + }).sort((a, b) => { + return a.sort - b.sort; }); return {