pass hook_id instead of url
This commit is contained in:
parent
714ef59814
commit
5becb41bd4
3 changed files with 10 additions and 12 deletions
|
@ -1672,8 +1672,6 @@ void PostgreSQL::commitThread()
|
|||
}
|
||||
|
||||
void PostgreSQL::notifyNewMember(const std::string &networkID, const std::string &memberID) {
|
||||
// TODO: Look up hook URL for network owner organization
|
||||
|
||||
std::shared_ptr<PostgresConnection> c;
|
||||
try {
|
||||
c = _pool->borrow();
|
||||
|
@ -1687,7 +1685,7 @@ void PostgreSQL::notifyNewMember(const std::string &networkID, const std::string
|
|||
|
||||
// TODO: Add check for active subscription
|
||||
|
||||
auto res = w.exec_params("SELECT h.hook_url "
|
||||
auto res = w.exec_params("SELECT h.hook_id "
|
||||
"FROM ztc_hook h "
|
||||
"INNER JOIN ztc_hook_hook_types ht "
|
||||
"ON ht.hook_id = h.hook_id "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue