Skip to content

Commit

Permalink
feat(xo-server): add supportFileRestore prop to remote objects
Browse files Browse the repository at this point in the history
Related to #6116
  • Loading branch information
julien-f committed Feb 14, 2022
1 parent bcdaa37 commit bf194f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/xo-server/src/xo-mixins/remotes.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit bf194f5

Please sign in to comment.