mirror of
https://github.com/juanfont/headscale.git
synced 2024-12-25 05:35:52 -05:00
fixed linting x 2
This commit is contained in:
parent
033136cb9a
commit
0124899759
@ -81,7 +81,7 @@ func (h *Headscale) GetPreAuthKey(namespace string, key string) (*PreAuthKey, er
|
|||||||
return pak, nil
|
return pak, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// MarkExpirePreauthKey marks a PreAuthKey as expired
|
// MarkExpirePreAuthKey marks a PreAuthKey as expired
|
||||||
func (h *Headscale) MarkExpirePreAuthKey(k *PreAuthKey) error {
|
func (h *Headscale) MarkExpirePreAuthKey(k *PreAuthKey) error {
|
||||||
if err := h.db.Model(&k).Update("Expiration", time.Now()).Error; err != nil {
|
if err := h.db.Model(&k).Update("Expiration", time.Now()).Error; err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user