minor fix
This commit is contained in:
@@ -40,7 +40,7 @@ const (
|
||||
ReferralSuccessfulSubject = "You've earned 10 GB on Ente! 🎁"
|
||||
|
||||
StorageLimitExceedingID = "90_percent_consumed"
|
||||
StorageLimitExceedingTemplate = "ninety_percent_consumed.html"
|
||||
StorageLimitExceedingTemplate = "90_percent_storage_consumed.html"
|
||||
StorageLimitExceedingSubject = "Your Ente storage is at 90% capacity"
|
||||
|
||||
LoginSuccessSubject = "New login to your Ente account"
|
||||
|
||||
@@ -319,7 +319,7 @@ func (repo *UserRepository) GetUsersWithExceedingStorages(percentageThreshold in
|
||||
INNER JOIN usage
|
||||
ON users.user_id = usage.user_id
|
||||
INNER JOIN subscriptions
|
||||
ON users.user_id = subscriptions.user_id AND usage.storage_consumed >= (subscriptions.storage * $1 / 100.0) AND users.encrypted_email is not null AND users.family_admin_id is NULL;
|
||||
ON users.user_id = subscriptions.user_id AND usage.storage_consumed = (subscriptions.storage * $1 / 100) AND users.encrypted_email is not null AND users.family_admin_id is NULL;
|
||||
`, percentageThreshold)
|
||||
if err != nil {
|
||||
return nil, stacktrace.Propagate(err, "")
|
||||
|
||||
Reference in New Issue
Block a user