5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 23:46:21 +00:00

Merge branch 'issue-15109' into production.panel.sutty.nl

This commit is contained in:
f 2024-02-22 13:34:19 -03:00
commit 69765e6361
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@ module Api
module Webhooks module Webhooks
# Recibe webhooks y lanza un PullJob # Recibe webhooks y lanza un PullJob
class PullController < BaseController class PullController < BaseController
include WebhookConcern include Api::V1::Webhooks::Concerns::WebhookConcern
# Trae los cambios a partir de un post de Webhooks: # Trae los cambios a partir de un post de Webhooks:
# (Gitlab, Github, Gitea, etc) # (Gitlab, Github, Gitea, etc)

View file

@ -6,7 +6,7 @@ class AddRolToDeploys < ActiveRecord::Migration[6.1]
add_column :deploys, :rol_id, :integer, index: true add_column :deploys, :rol_id, :integer, index: true
Deploy.find_each do |deploy| Deploy.find_each do |deploy|
rol_id = deploy.site.roles.find_by(rol: 'usuarie', temporal: false).id rol_id = deploy.site.roles.find_by(rol: 'usuarie', temporal: false)&.id
deploy.update_column(:rol_id, rol_id) if rol_id deploy.update_column(:rol_id, rol_id) if rol_id
end end