internal: incomplete vault systems behind feature flag (#2340)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { ServerItemResponse } from '@standardnotes/responses'
|
||||
import { RevisionClientInterface } from '@standardnotes/services'
|
||||
import { Result, UseCaseInterface, Uuid } from '@standardnotes/domain-core'
|
||||
import {
|
||||
@@ -50,6 +51,8 @@ export class GetRevision implements UseCaseInterface<HistoryEntry> {
|
||||
content_type: revision.content_type as ContentType,
|
||||
updated_at: new Date(revision.updated_at),
|
||||
created_at: new Date(revision.created_at),
|
||||
key_system_identifier: revision.key_system_identifier ?? undefined,
|
||||
shared_vault_uuid: revision.shared_vault_uuid ?? undefined,
|
||||
waitingForKey: false,
|
||||
errorDecrypting: false,
|
||||
})
|
||||
@@ -67,7 +70,7 @@ export class GetRevision implements UseCaseInterface<HistoryEntry> {
|
||||
uuid: sourceItemUuid || revision.item_uuid,
|
||||
})
|
||||
|
||||
if (!isRemotePayloadAllowed(payload)) {
|
||||
if (!isRemotePayloadAllowed(payload as ServerItemResponse)) {
|
||||
return Result.fail(`Remote payload is disallowed: ${JSON.stringify(payload)}`)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user