mirror of
https://github.com/hexastack/hexabot
synced 2025-06-16 19:29:45 +00:00
fix: apply feedback update
This commit is contained in:
parent
563e337a65
commit
b51f5e85fb
@ -38,7 +38,7 @@ export class CleanupService {
|
|||||||
): Promise<DeleteResult> {
|
): Promise<DeleteResult> {
|
||||||
return await this.settingService.deleteMany({
|
return await this.settingService.deleteMany({
|
||||||
$or: criteria.map(({ suffix, namespaces }) => ({
|
$or: criteria.map(({ suffix, namespaces }) => ({
|
||||||
group: { $regex: suffix, $nin: namespaces },
|
group: { $regex: new RegExp(`${suffix}$`), $nin: namespaces },
|
||||||
})),
|
})),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user