mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
adjust permanently remove
This commit is contained in:
1 parent
48a82b1d49
commit
35a2aba887
4 files changed
+4
-4
No files matched your search
@@ -93,7 +93,7 @@ module Api
|
||||
end
|
||||
|
||||
def destroy
|
||||
if params[:permanently] == 'true'
|
||||
if params[:permanently].in?(['true', true])
|
||||
@submission.destroy!
|
||||
else
|
||||
@submission.update!(archived_at: Time.current)
|
||||
|
||||
@@ -74,7 +74,7 @@ module Api
|
||||
end
|
||||
|
||||
def destroy
|
||||
if params[:permanently] == 'true'
|
||||
if params[:permanently].in?(['true', true])
|
||||
@template.destroy!
|
||||
else
|
||||
@template.update!(archived_at: Time.current)
|
||||
|
||||
Reference in new issue
Block a user