diff --git a/.gitignore b/.gitignore index 92cc726..30d3ee7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ .DS_Store .idea/ .vscode/ +.env # test && mocks mocks/ @@ -9,4 +10,4 @@ mocks/ zeabur # dist -dist/ +dist/ \ No newline at end of file diff --git a/pkg/auth/const.go b/pkg/auth/const.go index 0a860b3..bcaad89 100644 --- a/pkg/auth/const.go +++ b/pkg/auth/const.go @@ -8,8 +8,8 @@ const ( ZeaburOAuthAuthorizeURL = ZeaburOAuthServerURL + "/authorize" ZeaburOAuthTokenURL = ZeaburOAuthServerURL + "/token" - ZeaburOAuthCLIClientID = "64c7559d0e6da9ed35dee1ff" - ZeaburOAuthCLIClientSecret = "630641" + ZeaburOAuthCLIClientID = "c92dcff3-92a1-4d39-827e-a3eb952d5e0b" + ZeaburOAuthCLIClientSecret = "tI2Q32jf" OAuthLocalServerCallbackURL = "http://localhost/callback" ) diff --git a/pkg/model/user.go b/pkg/model/user.go index 78b87e5..cad9b80 100644 --- a/pkg/model/user.go +++ b/pkg/model/user.go @@ -23,8 +23,7 @@ type User struct { BannedAt *time.Time `json:"bannedAt" graphql:"bannedAt"` //BannedReason *BannedReasonType `json:"bannedReason" graphql:"bannedReason"` //EmailPreference map[string]bool `json:"emailPreference" graphql:"emailPreference"` - AgreedAt *time.Time `json:"agreedAt" graphql:"agreedAt"` - LastCheckedInAt *time.Time `json:"lastCheckedInAt" graphql:"lastCheckedInAt"` + AgreedAt *time.Time `json:"agreedAt" graphql:"agreedAt"` // DiscordID is the user's Discord ID. DiscordID *string `json:"discordID" graphql:"discordID"` ID string `json:"_id" graphql:"_id"` @@ -37,7 +36,7 @@ type User struct { } func (u *User) Header() []string { - return []string{"ID", "Name", "Username", "Email", "Language", "LastCheckInAt", "RegisteredAt"} + return []string{"ID", "Name", "Username", "Email", "Language", "RegisteredAt"} } func (u *User) Rows() [][]string { @@ -47,7 +46,6 @@ func (u *User) Rows() [][]string { row = append(row, u.Username) row = append(row, u.Email) row = append(row, u.Language) - row = append(row, u.LastCheckedInAt.Format(time.RFC3339)) row = append(row, u.CreatedAt.Format(time.RFC3339)) return [][]string{row}