-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the admin subscription after the adv. settings (#626)
* Move the admin subscription after the adv. settings * fix sql script * fix typo
- Loading branch information
1 parent
8b404c1
commit 571c51d
Showing
3 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
\copy (select fyle_org_id from workspaces where onboarding_state = 'COMPLETE') to '/Users/hrishabh/Desktop/orgs_qbo.csv' WITH CSV HEADER; | ||
|
||
|
||
-- Fyle DB | ||
rollback; | ||
begin; | ||
|
||
create temp table temp_orgs ( | ||
org_id TEXT | ||
); | ||
|
||
--- update path here | ||
\copy temp_orgs(org_id) from '/Users/hrishabh/Desktop/orgs_qbo.csv' WITH CSV HEADER; | ||
|
||
|
||
update platform_schema.admin_subscriptions set is_enabled = 'f' where org_id not in ( | ||
select org_id from temp_orgs | ||
) | ||
and is_enabled = 't' | ||
and webhook_url ilike '%quickbooks-api%'; |