Fix bug with wrong key when creating party

This commit is contained in:
Justin Edmund 2022-02-26 18:25:54 -08:00
parent 5338e83be3
commit a04a1cb5c8
2 changed files with 2 additions and 1 deletions

View file

@ -8,7 +8,7 @@ class Api::V1::PartiesController < Api::V1::ApiController
def create
@party = Party.new(shortcode: random_string)
@party.extra = party_params['is_extra']
@party.extra = party_params['extra']
if current_user
@party.user = current_user

View file

@ -15,6 +15,7 @@ ActiveRecord::Schema.define(version: 2022_02_25_014523) do
# These are extensions that must be enabled in order to support this database
enable_extension "pgcrypto"
enable_extension "plpgsql"
enable_extension "timescaledb"
create_table "characters", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.string "name_en"