Page MenuHomePhabricator

D11610.id38968.diff
No OneTemporary

D11610.id38968.diff

diff --git a/keyserver/src/responders/relationship-responders.js b/keyserver/src/responders/relationship-responders.js
--- a/keyserver/src/responders/relationship-responders.js
+++ b/keyserver/src/responders/relationship-responders.js
@@ -5,7 +5,7 @@
import {
type TraditionalRelationshipRequest,
type RelationshipErrors,
- relationshipActionsList,
+ traditionalRelationshipActionsList,
} from 'lib/types/relationship-types.js';
import { tShape } from 'lib/utils/validation-utils.js';
@@ -14,7 +14,10 @@
export const updateRelationshipInputValidator: TInterface<TraditionalRelationshipRequest> =
tShape<TraditionalRelationshipRequest>({
- action: t.enums.of(relationshipActionsList, 'relationship action'),
+ action: t.enums.of(
+ traditionalRelationshipActionsList,
+ 'relationship action',
+ ),
userIDs: t.list(t.String),
});
diff --git a/lib/types/relationship-types.js b/lib/types/relationship-types.js
--- a/lib/types/relationship-types.js
+++ b/lib/types/relationship-types.js
@@ -55,6 +55,8 @@
export type TraditionalRelationshipAction = $Values<
typeof traditionalRelationshipActions,
>;
+export const traditionalRelationshipActionsList: $ReadOnlyArray<TraditionalRelationshipAction> =
+ values(traditionalRelationshipActions);
export const relationshipButtons = Object.freeze({
FRIEND: 'friend',

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 1, 6:59 PM (20 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2605848
Default Alt Text
D11610.id38968.diff (1 KB)

Event Timeline