feat(xo-server): add supportFileRestore prop to remote objects
Related to #6116
This commit is contained in:
@@ -12,7 +12,9 @@ import { Remotes } from '../models/remote.mjs'
|
||||
// ===================================================================
|
||||
|
||||
const obfuscateRemote = ({ url, ...remote }) => {
|
||||
remote.url = format(sensitiveValues.obfuscate(parse(url)))
|
||||
const parsedUrl = parse(url)
|
||||
remote.supportFileRestore = parsedUrl.type !== 's3'
|
||||
remote.url = format(sensitiveValues.obfuscate(parsedUrl))
|
||||
return remote
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user