pl-api: deleteGroupStatus actually returns a serialized status

Signed-off-by: Nicole Mikołajczyk <git@mkljczk.pl>
This commit is contained in:
Nicole Mikołajczyk
2025-05-05 10:41:35 +02:00
parent 15af8b53d8
commit 0ae92e4e55

View File

@ -5655,7 +5655,7 @@ class PlApiClient {
deleteGroupStatus: async (groupId: string, statusId: string) => {
const response = await this.request(`/api/v1/groups/${groupId}/statuses/${statusId}`, { method: 'DELETE' });
return response.json as {};
return v.parse(statusSchema, response.json);
},
/** list accounts blocked from interacting with the group */