Skip to content

Commit b9ea83e

Browse files
authored
fix(pfop): fix pipeline params set (#448)
* fix(pfop): fix pipeline params set * docs(fop): pipeline change to optional
1 parent 9b613a6 commit b9ea83e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

qiniu/fop.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function OperationManager (mac, config) {
1919
* @param {string} bucket 空间名称
2020
* @param {string} key 文件名称
2121
* @param {string[]} fops 处理指令
22-
* @param {string} pipeline 队列名称
22+
* @param {string} [pipeline] 队列名称
2323
* @param {object} options 可选参数
2424
* @param {string} [options.notifyURL] 回调业务服务器,通知处理结果
2525
* @param {boolean} [options.force] 是否强制覆盖已有的同名文件
@@ -47,8 +47,8 @@ OperationManager.prototype.pfop = function (
4747
}
4848

4949
// pipeline
50-
if (!pipeline) {
51-
delete reqParams.pipeline;
50+
if (pipeline) {
51+
reqParams.pipeline = pipeline;
5252
}
5353

5454
// notifyURL

0 commit comments

Comments
 (0)