mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 13:08:17 -05:00
14 lines
336 B
Transact-SQL
14 lines
336 B
Transact-SQL
CREATE PROCEDURE [dbo].[OrganizationDomain_ReadIfExpired]
|
|
AS
|
|
BEGIN
|
|
SET NOCOUNT OFF
|
|
|
|
SELECT
|
|
*
|
|
FROM
|
|
[dbo].[OrganizationDomain]
|
|
WHERE
|
|
DATEDIFF(DAY, [CreationDate], GETUTCDATE()) = 4 --Get domains that have not been verified after 3 days (72 hours)
|
|
AND
|
|
[VerifiedDate] IS NULL
|
|
END |