Bläddra i källkod

define app in the appropriate location

Kylie Jo Swistak 5 år sedan
förälder
incheckning
e2bf08bc3c
1 ändrade filer med 6 tillägg och 0 borttagningar
  1. 6 0
      app/app_forms/image_app.rb

+ 6 - 0
app/app_forms/image_app.rb

@@ -20,6 +20,9 @@ class ImageApplication < ApplicationForm
   end
 
   def self.approve(event)
+    # Save app
+    app = event.message.embeds.first
+
     # Update image and find character
     image = ImageController.edit_image(app)
     character = Character.find(image.char_id)
@@ -44,6 +47,9 @@ class ImageApplication < ApplicationForm
   end
 
   def self.deny(event)
+    # Save app
+    app = event.message.embeds.first
+
     # Create App Rejection
     reply = BotResponse.new(
       embed: reject_app_embed(app, :image),