diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index bb6a930..3d8d900 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,10 +4,7 @@
-
-
-
-
+
@@ -152,7 +149,6 @@
-
@@ -177,7 +173,8 @@
-
+
+
true
diff --git a/pkg/internal/services/statuses.go b/pkg/internal/services/statuses.go
index f1c07ac..8611c71 100644
--- a/pkg/internal/services/statuses.go
+++ b/pkg/internal/services/statuses.go
@@ -21,7 +21,7 @@ func GetStatus(uid uint) (models.Status, error) {
var status models.Status
if err := database.C.
Where("account_id = ?", uid).
- Where("clear_at < ?", time.Now()).
+ Where("clear_at > ?", time.Now()).
First(&status).Error; err != nil {
return status, err
} else {
@@ -77,7 +77,7 @@ func EditStatus(user models.Account, status models.Status) (models.Status, error
func ClearStatus(user models.Account) error {
if err := database.C.
Where("account_id = ?", user.ID).
- Where("clear_at < ?", time.Now()).
+ Where("clear_at > ?", time.Now()).
Updates(models.Status{ClearAt: lo.ToPtr(time.Now())}).Error; err != nil {
return err
} else {