Logo
Explore Help
Register Sign In
admin/server
1
0
Fork 0
You've already forked server
mirror of https://github.com/bitwarden/server.git synced 2026-01-31 14:13:18 +08:00
Code Issues Packages Projects Releases Wiki Activity
Files
main
server/util/Migrator/DbScripts/2023-10-03_00_OrganizationReadOwnerEmailAddresses.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
435 B
MySQL
Raw Permalink Normal View History

[AC-1693] Send InvoiceUpcoming Notification to Client Owners (#3319) * Add Organization_ReadOwnerEmailAddresses SPROC * Add IOrganizationRepository.GetOwnerEmailAddressesById * Add SendInvoiceUpcoming overload for multiple emails * Update InvoiceUpcoming handler to send multiple emails * Cy's feedback * Updates from testing Hardened against missing entity IDs in Stripe events in the StripeEventService. Updated ValidateCloudRegion to not use a refresh/expansion for the customer because the invoice.upcoming event does not have an invoice.Id. Updated the StripeController's handling of invoice.upcoming to not use a refresh/expansion for the subscription because the invoice does not have an ID. * Fix broken test
2023-10-23 13:46:29 -04:00
CREATE OR ALTER PROCEDURE [dbo].[Organization_ReadOwnerEmailAddressesById]
@OrganizationId UNIQUEIDENTIFIER
AS
BEGIN
SET NOCOUNT ON
SELECT
[U].[Email]
FROM [User] AS [U]
INNER JOIN [OrganizationUser] AS [OU] ON [U].[Id] = [OU].[UserId]
WHERE
[OU].[OrganizationId] = @OrganizationId AND
[OU].[Type] = 0 AND -- Owner
[OU].[Status] = 2 -- Confirmed
GROUP BY [U].[Email]
END
GO
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.2 Page: 455ms Template: 8ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API