mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-02 21:51:51 +08:00
fixup! Fix failing tests
This commit is contained in:
parent
2ea2700837
commit
5dccdbab17
1 changed files with 6 additions and 6 deletions
|
@ -108,13 +108,13 @@ class ExperimentsController < ApplicationController
|
||||||
|
|
||||||
experiment_annotation_notification(old_text)
|
experiment_annotation_notification(old_text)
|
||||||
|
|
||||||
activity_type_of = if experiment_params[:archived] == 'false'
|
activity_type = if experiment_params[:archived] == 'false'
|
||||||
:restore_experiment
|
:restore_experiment
|
||||||
else
|
else
|
||||||
:edit_experiment
|
:edit_experiment
|
||||||
end
|
end
|
||||||
Activities::CreateActivityService
|
Activities::CreateActivityService
|
||||||
.call(activity_type: activity_type_of,
|
.call(activity_type: activity_type,
|
||||||
owner: current_user,
|
owner: current_user,
|
||||||
subject: @experiment,
|
subject: @experiment,
|
||||||
project: @experiment.project,
|
project: @experiment.project,
|
||||||
|
|
Loading…
Reference in a new issue