mirror of
https://github.com/balzack/databag.git
synced 2025-02-14 12:39:17 +00:00
8 lines
316 B
JavaScript
8 lines
316 B
JavaScript
|
import { checkResponse, fetchWithTimeout } from './fetchUtil';
|
||
|
|
||
|
export async function clearChannelCard(token, channelId, cardId ) {
|
||
|
let channel = await fetchWithTimeout(`/content/channels/${channelId}/cards/${cardId}?agent=${token}`, {method: 'DELETE'});
|
||
|
checkResponse(channel);
|
||
|
return await channel.json();
|
||
|
}
|