Method
SetStatus
(ctx context.Context, u *ent.User, status user.Status)
Source from the content-addressed store, hash-verified
| 293 | } |
| 294 | |
| 295 | func (c *userClient) SetStatus(ctx context.Context, u *ent.User, status user.Status) (*ent.User, error) { |
| 296 | return c.client.User.UpdateOne(u).SetStatus(status).Save(ctx) |
| 297 | } |
| 298 | |
| 299 | func (c *userClient) Create(ctx context.Context, args *NewUserArgs) (*ent.User, error) { |
| 300 | // Try to check if there's user with same email. |
Callers
nothing calls this directly
Tested by
no test coverage detected