mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-06 20:16:00 -04:00
drafts were saving but client was failing to parse
This commit is contained in:
parent
efb15af209
commit
e26b3662ee
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue