chore: stabilize lint and verify builds
This commit is contained in:
@@ -71,6 +71,7 @@ func (s *notification) MarkRead(ctx context.Context, tenantID, userID, id int64)
|
||||
if err != nil {
|
||||
return errorx.ErrDatabaseError.WithCause(err)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -84,6 +85,7 @@ func (s *notification) MarkAllRead(ctx context.Context, tenantID, userID int64)
|
||||
if err != nil {
|
||||
return errorx.ErrDatabaseError.WithCause(err)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -108,7 +110,9 @@ func (s *notification) Send(ctx context.Context, tenantID, userID int64, typ, ti
|
||||
if err := models.NotificationQuery.WithContext(ctx).Create(n); err != nil {
|
||||
return errorx.ErrDatabaseError.WithCause(err)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
return s.job.Add(arg)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user