Fix server public key assignment and rename Wipe() to WipeFolder()
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
54b932e9c1
commit
903702c719
@ -82,6 +82,9 @@ func InvitationGetMessage(invitationUrl string, serverPublicKey string, invitati
|
|||||||
return nil, "InvitationGetMessage: StoreServer", err
|
return nil, "InvitationGetMessage: StoreServer", err
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if dbsrv.PublicKey != serverPublicKey {
|
||||||
|
dbsrv.PublicKey = serverPublicKey
|
||||||
|
}
|
||||||
srv = *dbsrv
|
srv = *dbsrv
|
||||||
}
|
}
|
||||||
// buildserver message
|
// buildserver message
|
||||||
|
@ -58,7 +58,7 @@ func (id *Identity) CreateFolder() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (id *Identity) Wipe() error {
|
func (id *Identity) WipeFolder() error {
|
||||||
err := os.RemoveAll(filepath.Join(GetConfig().StoragePath, id.Uuid))
|
err := os.RemoveAll(filepath.Join(GetConfig().StoragePath, id.Uuid))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user