chore: rename account to storage
This commit is contained in:
@ -8,9 +8,9 @@ import (
|
||||
)
|
||||
|
||||
func link(ctx context.Context, path string, args model.LinkArgs) (*model.Link, model.Obj, error) {
|
||||
account, actualPath, err := operations.GetAccountAndActualPath(path)
|
||||
storage, actualPath, err := operations.GetStorageAndActualPath(path)
|
||||
if err != nil {
|
||||
return nil, nil, errors.WithMessage(err, "failed get account")
|
||||
return nil, nil, errors.WithMessage(err, "failed get storage")
|
||||
}
|
||||
return operations.Link(ctx, account, actualPath, args)
|
||||
return operations.Link(ctx, storage, actualPath, args)
|
||||
}
|
||||
|
Reference in New Issue
Block a user