about summary refs log tree commit diff
path: root/spec
diff options
context:
space:
mode:
authoralpaca-tc <alpaca-tc@alpaca.tc>2017-05-07 04:55:40 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-05-06 21:55:40 +0200
commit05b72368ed56f23e247d28c2798789f91bb096c5 (patch)
tree83a589d1e93a734478f9aebdf9d9768f024a6002 /spec
parent6f71cfeff9bfffb479ea2dd8feb4f357e81a0676 (diff)
Fixes slow query in notifications api (#2851)
* Add inclusion validation for activity_type

* When excluding all types with `WHERE NOT IN`, the query search all rows.
Diffstat (limited to 'spec')
-rw-r--r--spec/fabricators/notification_fabricator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/fabricators/notification_fabricator.rb b/spec/fabricators/notification_fabricator.rb
index 08e984904..b92af0683 100644
--- a/spec/fabricators/notification_fabricator.rb
+++ b/spec/fabricators/notification_fabricator.rb
@@ -1,4 +1,4 @@
 Fabricator(:notification) do
   activity_id   1
-  activity_type "MyString"
+  activity_type 'Favourite'
 end