Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3535597
D11965.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
879 B
Referenced Files
None
Subscribers
None
D11965.diff
View Options
diff --git a/lib/types/validators/relationship-validators.js b/lib/types/validators/relationship-validators.js
--- a/lib/types/validators/relationship-validators.js
+++ b/lib/types/validators/relationship-validators.js
@@ -2,12 +2,12 @@
import t, { type TInterface } from 'tcomb';
-import { tShape } from '../../utils/validation-utils.js';
+import { tShape, tUserID } from '../../utils/validation-utils.js';
import { type RelationshipErrors } from '../relationship-types.js';
export const relationshipErrorsValidator: TInterface<RelationshipErrors> =
tShape<RelationshipErrors>({
- invalid_user: t.maybe(t.list(t.String)),
- already_friends: t.maybe(t.list(t.String)),
- user_blocked: t.maybe(t.list(t.String)),
+ invalid_user: t.maybe(t.list(tUserID)),
+ already_friends: t.maybe(t.list(tUserID)),
+ user_blocked: t.maybe(t.list(tUserID)),
});
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 26, 4:24 PM (11 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2707444
Default Alt Text
D11965.diff (879 B)
Attached To
Mode
D11965: [lib] Use tUserID in relationship-validators.js
Attached
Detach File
Event Timeline
Log In to Comment