typescript-express-starter 8.0.1 → 8.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.kr.md CHANGED
@@ -370,6 +370,8 @@ VSCode Extension에서 [REST Client](https://marketplace.visualstudio.com/items?
370
370
 
371
371
  - WhatIfWeDigDeeper [https://github.com/WhatIfWeDigDeeper](https://github.com/WhatIfWeDigDeeper)
372
372
 
373
+ - David Stewart [https://github.com/davidjmstewart](https://github.com/davidjmstewart)
374
+
373
375
  ## 💳 라이센스
374
376
 
375
377
  [MIT](LICENSE)
package/README.md CHANGED
@@ -375,6 +375,8 @@ Modify `.swcrc` file to your source code.
375
375
 
376
376
  - WhatIfWeDigDeeper [https://github.com/WhatIfWeDigDeeper](https://github.com/WhatIfWeDigDeeper)
377
377
 
378
+ - David Stewart [https://github.com/davidjmstewart](https://github.com/davidjmstewart)
379
+
378
380
  ## 💳 License
379
381
 
380
382
  [MIT](LICENSE)
@@ -42,7 +42,7 @@ class UsersController {
42
42
  try {
43
43
  const userId = Number(req.params.id);
44
44
  const userData: User = req.body;
45
- const updateUserData: User[] = await this.userService.updateUser(userId, userData);
45
+ const updateUserData: User = await this.userService.updateUser(userId, userData);
46
46
 
47
47
  res.status(200).json({ data: updateUserData, message: 'updated' });
48
48
  } catch (error) {
@@ -53,7 +53,7 @@ class UsersController {
53
53
  public deleteUser = async (req: Request, res: Response, next: NextFunction): Promise<void> => {
54
54
  try {
55
55
  const userId = Number(req.params.id);
56
- const deleteUserData: User[] = await this.userService.deleteUser(userId);
56
+ const deleteUserData: User = await this.userService.deleteUser(userId);
57
57
 
58
58
  res.status(200).json({ data: deleteUserData, message: 'deleted' });
59
59
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typescript-express-starter",
3
- "version": "8.0.1",
3
+ "version": "8.0.2",
4
4
  "description": "Quick and Easy TypeScript Express Starter",
5
5
  "author": "AGUMON <ljlm0402@gmail.com>",
6
6
  "license": "MIT",