🐛 Bug fixes

This commit is contained in:
2024-06-07 20:24:32 +08:00
parent 332557778d
commit b44786ae9a
3 changed files with 9 additions and 10 deletions

View File

@@ -32,7 +32,7 @@ func (v *Server) NotifyUser(_ context.Context, in *proto.NotifyRequest) (*proto.
})
notification := models.Notification{
Type: in.GetType(),
Type: lo.Ternary(len(in.GetType()) > 0, in.GetType(), "common"),
Subject: in.GetSubject(),
Content: in.GetContent(),
Metadata: metadata,