diff --git a/back/loaders/initData.ts b/back/loaders/initData.ts index 1d429ae5..83407526 100644 --- a/back/loaders/initData.ts +++ b/back/loaders/initData.ts @@ -42,7 +42,7 @@ export default async () => { where: { isDisabled: { [Op.ne]: 1 }, command: { - [Op.or]: [{ [Op.like]: `%ql repo%` }, { [Op.like]: `%$ql raw%` }], + [Op.or]: [{ [Op.like]: `%ql repo%` }, { [Op.like]: `%ql raw%` }], }, }, }).then((docs) => { diff --git a/back/services/dependence.ts b/back/services/dependence.ts index 78086618..bdc85476 100644 --- a/back/services/dependence.ts +++ b/back/services/dependence.ts @@ -80,7 +80,7 @@ export default class DependenceService { const encodeText = encodeURIComponent(searchValue); const reg = { [Op.or]: [ - { [Op.like]: `%${searchValue}&` }, + { [Op.like]: `%${searchValue}%` }, { [Op.like]: `%${encodeText}%` }, ], };