mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-24 15:54:00 +08:00
fixing hound errors
This commit is contained in:
parent
fa7bba9de7
commit
6deaff6382
3 changed files with 6 additions and 6 deletions
|
@ -58,11 +58,11 @@ class TemplatesService
|
|||
|
||||
def schedule_creation_for_user(user)
|
||||
user.teams.each do |team|
|
||||
unless team.projects.where(template: true).any?
|
||||
TemplatesService.new.delay(
|
||||
queue: :templates
|
||||
).update_team(team)
|
||||
end
|
||||
next if team.projects.where(template: true).any?
|
||||
|
||||
TemplatesService.new.delay(
|
||||
queue: :templates
|
||||
).update_team(team)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -42,7 +42,6 @@ module FirstTimeDataGenerator
|
|||
demo: true
|
||||
)
|
||||
|
||||
|
||||
# check if samples repo already exist, then create custom repository samples
|
||||
repository = Repository.where(team: team).where(name: REPO_SAMPLES_NAME)
|
||||
repository =
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: true
|
||||
class AddDemoFlagToProject < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
add_column :projects, :demo, :boolean, null: false, default: false
|
||||
|
|
Loading…
Reference in a new issue