Skip to content

Commit

Permalink
Add support for permanent option in destroy mountpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
elmotron authored Jul 26, 2024
1 parent 8acce28 commit a3da67a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugins/streaming-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -631,11 +631,12 @@ class StreamingHandle extends Handle {
* @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 a3da67a

Please sign in to comment.