renaming variable
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Paul 2021-04-07 12:26:13 +02:00
parent 6a708d748b
commit 5615ae297a

View File

@ -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)