Skip to content

Commit 7aa6d2c

Browse files
authored
feat: remove unused HasAvatar (#84)
* feat: remove unused HasAvatar * bump to v0.0.7
1 parent 9de22be commit 7aa6d2c

File tree

7 files changed

+5
-8
lines changed

7 files changed

+5
-8
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export SAFERWALL_VER = 0.6.0 # Current Version
1+
export SAFERWALL_VER = 0.7.0 # Current Version
22
export DOCKER_HUB_USR = saferwall # Dockerhub username
33
export DOCKER_HUB_IMG = webapis # Dockerhub image name
44
export COUCHBASE_BUCKETS_LIST = sfw # Couchbase bucket names list

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -installsuffix cgo \
3434

3535
FROM alpine:latest
3636
LABEL maintainer="https://github.com/saferwall/saferwall-api"
37-
LABEL version="0.6.0"
37+
LABEL version="0.7.0"
3838
LABEL description="Saferwall web APIs service"
3939

4040
ENV USER saferwall

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.6.0
1+
0.7.0

cmd/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import (
3232
)
3333

3434
// Version indicates the current version of the application.
35-
var Version = "0.6.0"
35+
var Version = "0.7.0"
3636

3737
var flagConfig = flag.String("config", "./../configs/", "path to the config file")
3838
var flagN1QLFiles = flag.String("db", "./../db/", "path to the n1ql files")

internal/entity/activity.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 Saferwall. All rights reserved.
1+
// Copyright 2018 Saferwall. All rights reserved.
22
// Use of this source code is governed by Apache v2 license
33
// license that can be found in the LICENSE file.
44

internal/entity/user.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ type User struct {
2020
MemberSince int64 `json:"member_since"`
2121
LastSeen int64 `json:"last_seen"`
2222
Admin bool `json:"admin"`
23-
HasAvatar bool `json:"has_avatar"`
2423
Following []string `json:"following"`
2524
FollowingCount int `json:"following_count"`
2625
Followers []string `json:"followers"`

internal/user/service.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,8 +532,6 @@ func (s service) UpdateAvatar(ctx context.Context, id string, src io.Reader) err
532532
return err
533533
}
534534

535-
user.HasAvatar = true
536-
537535
return s.repo.Update(ctx, user)
538536
}
539537

0 commit comments

Comments
 (0)