Skip to content

Commit

Permalink
Format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ab-elhaddad committed Oct 12, 2023
1 parent 39cf790 commit e96266b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/controllers/helpers/generateListURL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ const shareList = (l_id: number): string => {
const token = jwt.sign(String(l_id), config.jwtSecretKey);
const url = `http://localhost:3000/lists/${token}`;
return url;
}
};

export default shareList;
6 changes: 3 additions & 3 deletions src/controllers/lists.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const getList = async (req: Request, res: Response, next: NextFunction) =
res.locals.err = err;
next();
}
}
};

export const deleteList = async (req: Request, res: Response, next: NextFunction) => {
try {
Expand All @@ -64,7 +64,7 @@ export const shareList = async (req: Request, res: Response, next: NextFunction)
res.locals.err = err;
next();
}
}
};

export const viewsharedList = async (req: Request, res: Response, next: NextFunction) => {
try {
Expand All @@ -78,7 +78,7 @@ export const viewsharedList = async (req: Request, res: Response, next: NextFunc
res.locals.err = err;
next();
}
}
};

export const addTask = async (req: Request, res: Response, next: NextFunction) => {
try {
Expand Down

0 comments on commit e96266b

Please sign in to comment.