🐛 Not supposed to appear to status at the same time
This commit is contained in:
@ -73,6 +73,12 @@ func setStatus(c *fiber.Ctx) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// End the status already exists
|
||||
if status, err := services.GetStatus(user.ID); err == nil {
|
||||
status.ClearAt = lo.ToPtr(time.Now())
|
||||
database.C.Save(&status)
|
||||
}
|
||||
|
||||
status := models.Status{
|
||||
Type: req.Type,
|
||||
Label: req.Label,
|
||||
|
Reference in New Issue
Block a user