From 8d710de26e6d1c37abd878f7a00ce9767ff6c0c7 Mon Sep 17 00:00:00 2001
From: Marcin Ickiewicz <mickiewicz@syncad.com>
Date: Fri, 16 Oct 2020 14:03:01 +0200
Subject: [PATCH] fully deterministic mentions order

---
 hive/db/sql_scripts/update_hive_posts_mentions.sql | 2 +-
 tests/tests_api                                    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/hive/db/sql_scripts/update_hive_posts_mentions.sql b/hive/db/sql_scripts/update_hive_posts_mentions.sql
index 2cbea76e6..0b2e85175 100644
--- a/hive/db/sql_scripts/update_hive_posts_mentions.sql
+++ b/hive/db/sql_scripts/update_hive_posts_mentions.sql
@@ -30,7 +30,7 @@ BEGIN
       )T( id_post, mention, author_id, block_num )
     )T( id_post, mention, author_id, block_num ) ON ha.name = T.mention
     WHERE ha.id != T.author_id
-    ORDER BY T.id_post
+    ORDER BY T.block_num, T.id_post, ha.id
   ON CONFLICT DO NOTHING;
 
 END
diff --git a/tests/tests_api b/tests/tests_api
index ee534480e..a67fd2e56 160000
--- a/tests/tests_api
+++ b/tests/tests_api
@@ -1 +1 @@
-Subproject commit ee534480e5739b75968089859ee3663dfdabb126
+Subproject commit a67fd2e56ecf35b254d5f901767802524fe6f39e
-- 
GitLab