mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 19:28:35 +00:00
Add minor improvements to notifyExpiredTokens
This commit is contained in:
@@ -41,6 +41,7 @@ export const serviceTokenDALFactory = (db: TDbClient) => {
|
||||
.whereRaw(
|
||||
`${TableName.ServiceToken}."expiresAt" < NOW() AND ${TableName.ServiceToken}."notificationSent" = false`
|
||||
)
|
||||
.whereNotNull(`${TableName.Users}.email`)
|
||||
.select(`${TableName.ServiceToken}.name`)
|
||||
.select(`${TableName.ServiceToken}.id`)
|
||||
.select(`${TableName.Project}.name as projectName`)
|
||||
|
||||
Reference in New Issue
Block a user