Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32331713
D7727.1765306172.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
624 B
Referenced Files
None
Subscribers
None
D7727.1765306172.diff
View Options
diff --git a/keyserver/src/socket/socket.js b/keyserver/src/socket/socket.js
--- a/keyserver/src/socket/socket.js
+++ b/keyserver/src/socket/socket.js
@@ -144,7 +144,7 @@
id: t.Number,
payload: tShape({
endpoint: t.String,
- input: t.Object,
+ input: t.maybe(t.Object),
}),
}),
]);
diff --git a/lib/types/endpoints.js b/lib/types/endpoints.js
--- a/lib/types/endpoints.js
+++ b/lib/types/endpoints.js
@@ -2,7 +2,7 @@
export type APIRequest = {
endpoint: Endpoint,
- input: Object,
+ input?: Object,
};
export type SocketAPIHandler = (request: APIRequest) => Promise<Object>;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 9, 6:49 PM (4 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5856797
Default Alt Text
D7727.1765306172.diff (624 B)
Attached To
Mode
D7727: [lib] Allow calling endpoints with empty payload
Attached
Detach File
Event Timeline
Log In to Comment