提交 284182f5 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

remove unnecessary check (which caused bug)

上级 77126bfa
......@@ -209,10 +209,6 @@ export class Contact extends Accessory implements Sayable {
): Promise<Array<T['prototype']>> {
log.verbose('Contact', 'findAll(%s)', JSON.stringify(query) || '')
if (query && Object.keys(query).length !== 1) {
throw new Error('query only support one key. multi key support is not availble now.')
}
try {
const contactIdList: string[] = await this.puppet.contactSearch(query)
const contactList = contactIdList.map(id => this.load(id))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册