Explorar el Código

I still cant spell

Kylie Jo Swistak hace 5 años
padre
commit
be7fdfcfc3
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      app/app_forms/character_app.rb
  2. 1 1
      app/controllers/image_controller.rb

+ 1 - 1
app/app_forms/character_app.rb

@@ -7,7 +7,7 @@ class CharacterApplication < ApplicationForm
       maj = majority(event)
 
       reactions = event.message.reactions
-      if reactions[Emoji::Y]&.count.to_i > 1 && star(event)
+      if reactions[Emoji::Y]&.count.to_i > maj && star(event)
         approve(event)
       elsif reactions[Emoji::N]&.count.to_i > maj
         deny(event)

+ 1 - 1
app/controllers/image_controller.rb

@@ -9,7 +9,7 @@ class ImageController
         char_id: char_id,
         url: url,
         category: rating,
-        keword: 'Default'
+        keyword: 'Default'
       )
     end
   end