Fix server public key assignment and rename Wipe() to WipeFolder()
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
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
|
||||
}
|
||||
} else {
|
||||
if dbsrv.PublicKey != serverPublicKey {
|
||||
dbsrv.PublicKey = serverPublicKey
|
||||
}
|
||||
srv = *dbsrv
|
||||
}
|
||||
// buildserver message
|
||||
|
|
|
@ -58,7 +58,7 @@ func (id *Identity) CreateFolder() error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (id *Identity) Wipe() error {
|
||||
func (id *Identity) WipeFolder() error {
|
||||
err := os.RemoveAll(filepath.Join(GetConfig().StoragePath, id.Uuid))
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in New Issue