remove unnecessary check
This commit is contained in:
1 parent
839f1beb41
commit
dc7d442ace
1 file changed
-4
@@ -213,10 +213,6 @@ export class CheckService implements ICheckService {
|
||||
};
|
||||
|
||||
deleteOlderThan = async (date: Date) => {
|
||||
if (!date) {
|
||||
throw new AppError({ message: "No date provided", service: SERVICE_NAME, method: "deleteChecksOlderThan", status: 400 });
|
||||
}
|
||||
|
||||
const deletedCount = await this.checksRepository.deleteOlderThan(date);
|
||||
return deletedCount;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user