Skip to content

Commit

Permalink
Removed redundant connectDB.tsx file and updated the typing for valid…
Browse files Browse the repository at this point in the history
…ation middleware
  • Loading branch information
IvanC112 authored and LordFarquaadtheCreator committed Jun 11, 2024
1 parent be99702 commit e064eed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
14 changes: 0 additions & 14 deletions connectDB.ts

This file was deleted.

4 changes: 2 additions & 2 deletions middlewares/validate.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//validate all fields and their types
function validating(
keys: string[],
values: any[],
requiredFields: any,
values: (string | number)[],
requiredFields: { [key: string]: string },
res: any,
) {
for (let i = 0; i < values.length; i++) {
Expand Down

0 comments on commit e064eed

Please sign in to comment.