Skip to content

Commit d9a9843

Browse files
committed
fix: query user without lastCheckIn
1 parent d293ffe commit d9a9843

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.DS_Store
22
.idea/
33
.vscode/
4+
.env
45

56
# test && mocks
67
mocks/
@@ -9,4 +10,4 @@ mocks/
910
zeabur
1011

1112
# dist
12-
dist/
13+
dist/

pkg/auth/const.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ const (
88
ZeaburOAuthAuthorizeURL = ZeaburOAuthServerURL + "/authorize"
99
ZeaburOAuthTokenURL = ZeaburOAuthServerURL + "/token"
1010

11-
ZeaburOAuthCLIClientID = "64c7559d0e6da9ed35dee1ff"
12-
ZeaburOAuthCLIClientSecret = "630641"
11+
ZeaburOAuthCLIClientID = "c92dcff3-92a1-4d39-827e-a3eb952d5e0b"
12+
ZeaburOAuthCLIClientSecret = "tI2Q32jf"
1313

1414
OAuthLocalServerCallbackURL = "http://localhost/callback"
1515
)

pkg/model/user.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ type User struct {
2323
BannedAt *time.Time `json:"bannedAt" graphql:"bannedAt"`
2424
//BannedReason *BannedReasonType `json:"bannedReason" graphql:"bannedReason"`
2525
//EmailPreference map[string]bool `json:"emailPreference" graphql:"emailPreference"`
26-
AgreedAt *time.Time `json:"agreedAt" graphql:"agreedAt"`
27-
LastCheckedInAt *time.Time `json:"lastCheckedInAt" graphql:"lastCheckedInAt"`
26+
AgreedAt *time.Time `json:"agreedAt" graphql:"agreedAt"`
2827
// DiscordID is the user's Discord ID.
2928
DiscordID *string `json:"discordID" graphql:"discordID"`
3029
ID string `json:"_id" graphql:"_id"`
@@ -37,7 +36,7 @@ type User struct {
3736
}
3837

3938
func (u *User) Header() []string {
40-
return []string{"ID", "Name", "Username", "Email", "Language", "LastCheckInAt", "RegisteredAt"}
39+
return []string{"ID", "Name", "Username", "Email", "Language", "RegisteredAt"}
4140
}
4241

4342
func (u *User) Rows() [][]string {
@@ -47,7 +46,6 @@ func (u *User) Rows() [][]string {
4746
row = append(row, u.Username)
4847
row = append(row, u.Email)
4948
row = append(row, u.Language)
50-
row = append(row, u.LastCheckedInAt.Format(time.RFC3339))
5149
row = append(row, u.CreatedAt.Format(time.RFC3339))
5250

5351
return [][]string{row}

0 commit comments

Comments
 (0)