definy.check-missing-hashes
- description
- The RPC CheckMissingHashes: the hashes in contentHashes that are not in the CAS (missingContentHashes). The browser uploads only those before taking a snapshot
- type
Fn(request: @definy.json) -> @definy.service-io
- expression
fn(request$0) => @definy.store-read-missing-content-hashes( content_hashes: match @definy.json-get-strings(value: $0, key: "contentHashes") { #some(hashes$1) => $1, #none(_) => [] }, then: fn(missing$2) => @definy.json-response( status: 200, body: #object<@definy.json>([ { key: "missingContentHashes", value: #array<@definy.json>(@definy.json-string-array(items: $2, index: 0)) } ]) ) )
- visibility
- public
definy.check-missing-hashes (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo) id: WWHd5bUcp93_zfVAwy5yXUVjYcGufGkQ8Pzb4tzvaIE content hash: OjdZY3coi-SNxR4qetVyXZcRM4pAz_1jGb_H-HqlwJo