mirror of
https://github.com/stoatchat/javascript-client-api.git
synced 2026-07-18 16:14:27 -04:00
Update response from /sync/reads to be an array
This commit is contained in:
+8
-2
@@ -102,7 +102,13 @@ resource('/sync/unreads', {
|
||||
post: routeAuthenticated(
|
||||
"Fetch Unreads",
|
||||
"Fetch information about unread state on channels.",
|
||||
await success("Unreads Data", ref("ChannelUnread"))
|
||||
await success(
|
||||
"Array of Unreads Data",
|
||||
schema`
|
||||
import type { ChannelUnread } from "./Sync";
|
||||
type ${'FetchUnreads'} = ChannelUnread[];
|
||||
`
|
||||
)
|
||||
)
|
||||
});
|
||||
//#endregion
|
||||
@@ -128,4 +134,4 @@ resource('/push/unsubscribe', {
|
||||
await noContent("Unsubscribed successfully.")
|
||||
)
|
||||
});
|
||||
//#endregion
|
||||
//#endregion
|
||||
|
||||
Reference in New Issue
Block a user