mirror of
https://github.com/hexastack/hexabot
synced 2025-04-23 15:54:16 +00:00
fix: apply feedback update
This commit is contained in:
parent
563e337a65
commit
b51f5e85fb
@ -38,7 +38,7 @@ export class CleanupService {
|
||||
): Promise<DeleteResult> {
|
||||
return await this.settingService.deleteMany({
|
||||
$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