renaming variable
This commit is contained in:
parent
6a708d748b
commit
5615ae297a
@ -31,10 +31,10 @@ func (u *User) Init(cfg *config.Config) (err error) {
|
||||
|
||||
// GetEntry returns requested acme ressource in database relative to domain
|
||||
func (u *User) GetEntry(cfg *config.Config, domains []string) (Entry cert.Entry, err error) {
|
||||
renewingdate := time.Now().AddDate(0, 0, -cfg.ACME.MaxDaysBefore).Format("2006-01-02")
|
||||
renewaldate := time.Now().AddDate(0, 0, -cfg.ACME.MaxDaysBefore).Format("2006-01-02")
|
||||
|
||||
has, err := cfg.Db.Where("domains = ?", strings.Join(domains, ",")).Where(
|
||||
"validity_end >= ?::timestamp", renewingdate).Where(
|
||||
"validity_end >= ?::timestamp", renewaldate).Where(
|
||||
"auth_url = ?", cfg.ACME.AuthURL).Desc(
|
||||
"id").Get(&Entry)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user