diff options
author | 2022-11-16 11:27:08 +0100 | |
---|---|---|
committer | 2022-11-16 11:27:08 +0100 | |
commit | 940abc279cb84e6bdb62326565b04c279bfb596b (patch) | |
tree | 2a8c03afcc57a70491d486391c0e638864b92017 /internal/db/user.go | |
parent | [chore] update database caching library (#1040) (diff) | |
download | gotosocial-940abc279cb84e6bdb62326565b04c279bfb596b.tar.xz |
[chore] reversion: use specific columns for updating user again (#1059)
Diffstat (limited to 'internal/db/user.go')
-rw-r--r-- | internal/db/user.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/db/user.go b/internal/db/user.go index d01a8862a..1c6118fce 100644 --- a/internal/db/user.go +++ b/internal/db/user.go @@ -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 } |