mirror of
https://github.com/bitwarden/server.git
synced 2025-07-13 13:47:30 -05:00
handle transactions on paypal webhook
This commit is contained in:
@ -248,5 +248,6 @@
|
||||
<Build Include="dbo\Stored Procedures\Transaction_Update.sql" />
|
||||
<Build Include="dbo\Views\TransactionView.sql" />
|
||||
<Build Include="dbo\Stored Procedures\Transaction_ReadByUserId.sql" />
|
||||
<Build Include="dbo\Stored Procedures\Transaction_ReadByGatewayId.sql" />
|
||||
</ItemGroup>
|
||||
</Project>
|
@ -0,0 +1,15 @@
|
||||
CREATE PROCEDURE [dbo].[Transaction_ReadByGatewayId]
|
||||
@Gateway TINYINT,
|
||||
@GatewayId VARCHAR(50)
|
||||
AS
|
||||
BEGIN
|
||||
SET NOCOUNT ON
|
||||
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
[dbo].[TransactionView]
|
||||
WHERE
|
||||
[Gateway] = @Gateway
|
||||
AND [GatewayId] = @GatewayId
|
||||
END
|
@ -18,7 +18,7 @@
|
||||
|
||||
|
||||
GO
|
||||
CREATE NONCLUSTERED INDEX [IX_Transaction_Gateway_GatewayId]
|
||||
CREATE UNIQUE NONCLUSTERED INDEX [IX_Transaction_Gateway_GatewayId]
|
||||
ON [dbo].[Transaction]([Gateway] ASC, [GatewayId] ASC);
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user