mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-02 04:32:24 -06:00
[chore] reversion: use specific columns for updating user again (#1059)
This commit is contained in:
parent
8598dea98b
commit
940abc279c
4 changed files with 37 additions and 27 deletions
|
|
@ -36,8 +36,8 @@ type User interface {
|
|||
GetUserByConfirmationToken(ctx context.Context, confirmationToken string) (*gtsmodel.User, Error)
|
||||
// PutUser will attempt to place user in the database
|
||||
PutUser(ctx context.Context, user *gtsmodel.User) Error
|
||||
// UpdateUser updates one user by its primary key.
|
||||
UpdateUser(ctx context.Context, user *gtsmodel.User) Error
|
||||
// UpdateUser updates one user by its primary key, updating either only the specified columns, or all of them.
|
||||
UpdateUser(ctx context.Context, user *gtsmodel.User, columns ...string) Error
|
||||
// DeleteUserByID deletes one user by its ID.
|
||||
DeleteUserByID(ctx context.Context, userID string) Error
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue