diff --git a/Dockerfile.alpine b/Dockerfile.alpine index 6230629..c601c1e 100644 --- a/Dockerfile.alpine +++ b/Dockerfile.alpine @@ -31,7 +31,7 @@ RUN cp /src/wakapi . && \ FROM alpine:3 WORKDIR /app -RUN apk update && apk add bash ca-certificates && rm -rf /var/cache/apk +RUN apk update && apk add bash ca-certificates tzdata && rm -rf /var/cache/apk # See README.md and config.default.yml for all config options ENV ENVIRONMENT prod diff --git a/repositories/user.go b/repositories/user.go index 64be152..69e4e29 100644 --- a/repositories/user.go +++ b/repositories/user.go @@ -160,10 +160,6 @@ func (r *UserRepository) Update(user *models.User) (*models.User, error) { return nil, err } - if result.RowsAffected != 1 { - return nil, errors.New("nothing updated") - } - return user, nil }