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