1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

fix: include tzdata package in alpine docker image [ci-skip]

This commit is contained in:
Ferdinand Mütsch 2021-08-21 09:16:45 +02:00
parent dff0b742fc
commit c07a4d71a0
2 changed files with 1 additions and 5 deletions

View File

@ -31,7 +31,7 @@ RUN cp /src/wakapi . && \
FROM alpine:3 FROM alpine:3
WORKDIR /app 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 # See README.md and config.default.yml for all config options
ENV ENVIRONMENT prod ENV ENVIRONMENT prod

View File

@ -160,10 +160,6 @@ func (r *UserRepository) Update(user *models.User) (*models.User, error) {
return nil, err return nil, err
} }
if result.RowsAffected != 1 {
return nil, errors.New("nothing updated")
}
return user, nil return user, nil
} }