mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
drafts were saving but client was failing to parse
This commit is contained in:
parent
efb15af209
commit
e26b3662ee
@ -9,12 +9,12 @@ class DraftController < ApplicationController
|
||||
|
||||
def update
|
||||
Draft.set(current_user, params[:draft_key], params[:sequence].to_i, params[:data])
|
||||
render text: 'ok'
|
||||
render json: success_json
|
||||
end
|
||||
|
||||
def destroy
|
||||
Draft.clear(current_user, params[:draft_key], params[:sequence].to_i)
|
||||
render text: 'ok'
|
||||
render json: success_json
|
||||
end
|
||||
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user