1
0
mirror of https://github.com/raseels-repos/golang-saas-starter-kit.git synced 2025-06-15 00:15:15 +02:00

removed db tags on models

This commit is contained in:
Lee Brown
2019-05-29 18:52:28 -08:00
parent 16dafe29fd
commit fa598fa328
6 changed files with 67 additions and 61 deletions

View File

@ -402,7 +402,7 @@ func Update(ctx context.Context, claims auth.Claims, dbConn *sqlx.DB, req Update
query := sqlbuilder.NewUpdateBuilder()
query.Update(usersTableName)
fields := []string{}
var fields []string
if req.Name != nil {
fields = append(fields, query.Assign("name", req.Name))
}