From c07a4d71a0aa2053c853f86549b0f03d58d438fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferdinand=20M=C3=BCtsch?= Date: Sat, 21 Aug 2021 09:16:45 +0200 Subject: [PATCH] fix: include tzdata package in alpine docker image [ci-skip] --- Dockerfile.alpine | 2 +- repositories/user.go | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) 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 }