From bffa9feb51764b234331a051129ecfc6401fb28a Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Mon, 13 Sep 2021 13:05:51 +0000 Subject: [PATCH] fixed a bug in post-commit.in --- codepot/etc/post-commit.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/codepot/etc/post-commit.in b/codepot/etc/post-commit.in index 81faea38..5ad8e800 100644 --- a/codepot/etc/post-commit.in +++ b/codepot/etc/post-commit.in @@ -451,7 +451,7 @@ sub trigger_webhooks { my ($cfg, $dbh, $prefix, $projectid) = @_; - my $query = $dbh->prepare("SELECT ${QC}webhooks${QC} FROM ${QC}${prefix}project${QC} WHERE ${QC}projectid${QC}=?"); + my $query = $dbh->prepare("SELECT ${QC}webhooks${QC} FROM ${QC}${prefix}project${QC} WHERE ${QC}id${QC}=?"); if (!$query || !$query->execute($projectid)) { if ($query) { $query->finish (); } @@ -475,11 +475,11 @@ sub trigger_webhooks my $res = $ua->get($webhook); if ($res->is_success) { - ##print "$res->decoded_content\n"; + ##print $res->decoded_content . "\n"; } else { - ##print "$res->status_line\n"; + ##print $res->status_line . "\n"; } } }