Skip to content

Commit

Permalink
Add support for permanent option in destroy mountpoint (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
elmotron authored Jul 30, 2024
1 parent 84b41b8 commit 5159a72
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plugins/streaming-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -628,14 +628,16 @@ class StreamingHandle extends Handle {
*
* @param {object} params
* @param {number|string} params.id
* @param {boolean} [params.permanent]
* @param {string} [params.secret]
* @returns {Promise<module:streaming-plugin~STREAMING_EVENT_DESTROYED>}
*/
async destroyMountpoint({ id, secret }) {
async destroyMountpoint({ id, permanent, secret }) {
const body = {
request: REQUEST_DESTROY,
id,
};
if (typeof permanent === 'boolean') body.permanent = permanent;
if (typeof secret === 'string') body.secret = secret;

const response = await this.message(body);
Expand Down

0 comments on commit 5159a72

Please sign in to comment.