Skip to content

BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr

fixed bugs.

dreambladeflaga631cce5c01c
diff --git a/core/internal/service/rbac/account.go b/core/internal/service/rbac/account.go
index 5084cfb4..2335475d 100644
--- a/core/internal/service/rbac/account.go
+++ b/core/internal/service/rbac/account.go
@@ -71,8 +71,8 @@ func (s *accountService) Create(ctx context.Context, accountData *model.Account)
"email": accountData.Email,
"status": accountData.Status,
"language": accountData.Language,
- "create_time": time.Now(),
- "update_time": time.Now(),
+ "create_time": time.Now().Unix(),
+ "update_time": time.Now().Unix(),
}).Insert()
if err != nil {
return 0, err
@@ -93,7 +93,7 @@ func (s *accountService) Update(ctx context.Context, accountData *model.Account)
"email": accountData.Email,
"status": accountData.Status,
"language": accountData.Language,
- "update_time": time.Now(),
+ "update_time": time.Now().Unix(),
}).Where("account_id = ?", accountData.AccountId).Update()
return err
}
@@ -113,7 +113,7 @@ func (s *accountService) UpdatePassword(ctx context.Context, accountId int64, ne
_, err = g.DB().Model("account").Data(g.Map{
"password": string(hashedPassword),
- "updated_at": time.Now(),
+ "updated_at": time.Now().Unix(),
}).Where("account_id = ?", accountId).Update()
return err
}