This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

update error types on controllers

+21 -21
+1 -1
src/modules/cards/infrastructure/http/controllers/AddCardToCollectionController.ts
··· 32 32 }); 33 33 34 34 if (result.isErr()) { 35 - return this.fail(res, result.error as any); 35 + return this.fail(res, result.error); 36 36 } 37 37 38 38 return this.ok(res, result.value);
+1 -1
src/modules/cards/infrastructure/http/controllers/AddCardToLibraryController.ts
··· 33 33 }); 34 34 35 35 if (result.isErr()) { 36 - return this.fail(res, result.error as any); 36 + return this.fail(res, result.error); 37 37 } 38 38 39 39 return this.ok(res, result.value);
+1 -1
src/modules/cards/infrastructure/http/controllers/AddUrlToLibraryController.ts
··· 29 29 }); 30 30 31 31 if (result.isErr()) { 32 - return this.fail(res, result.error as any); 32 + return this.fail(res, result.error); 33 33 } 34 34 35 35 return this.ok(res, result.value);
+1 -1
src/modules/cards/infrastructure/http/controllers/CreateCollectionController.ts
··· 28 28 }); 29 29 30 30 if (result.isErr()) { 31 - return this.fail(res, result.error as any); 31 + return this.fail(res, result.error); 32 32 } 33 33 34 34 return this.ok(res, result.value);
+1 -1
src/modules/cards/infrastructure/http/controllers/DeleteCollectionController.ts
··· 27 27 }); 28 28 29 29 if (result.isErr()) { 30 - return this.fail(res, result.error as any); 30 + return this.fail(res, result.error); 31 31 } 32 32 33 33 return this.ok(res, result.value);
+1 -1
src/modules/cards/infrastructure/http/controllers/GetCollectionPageController.ts
··· 29 29 }); 30 30 31 31 if (result.isErr()) { 32 - return this.fail(res, result.error as any); 32 + return this.fail(res, result.error); 33 33 } 34 34 35 35 return this.ok(res, result.value);
+1 -1
src/modules/cards/infrastructure/http/controllers/GetLibrariesForCardController.ts
··· 19 19 const result = await this.getLibrariesForCardUseCase.execute({ cardId }); 20 20 21 21 if (result.isErr()) { 22 - return this.fail(res, result.error as any); 22 + return this.fail(res, result.error); 23 23 } 24 24 25 25 return this.ok(res, result.value);
+1 -1
src/modules/cards/infrastructure/http/controllers/GetMyCollectionsController.ts
··· 31 31 }); 32 32 33 33 if (result.isErr()) { 34 - return this.fail(res, result.error as any); 34 + return this.fail(res, result.error); 35 35 } 36 36 37 37 return this.ok(res, result.value);
+1 -1
src/modules/cards/infrastructure/http/controllers/GetMyProfileController.ts
··· 19 19 const result = await this.getProfileUseCase.execute({ userId }); 20 20 21 21 if (result.isErr()) { 22 - return this.fail(res, result.error as any); 22 + return this.fail(res, result.error); 23 23 } 24 24 25 25 return this.ok(res, result.value);
+1 -1
src/modules/cards/infrastructure/http/controllers/GetMyUrlCardsController.ts
··· 27 27 }); 28 28 29 29 if (result.isErr()) { 30 - return this.fail(res, result.error as any); 30 + return this.fail(res, result.error); 31 31 } 32 32 33 33 return this.ok(res, result.value);
+1 -1
src/modules/cards/infrastructure/http/controllers/GetUrlCardViewController.ts
··· 23 23 }); 24 24 25 25 if (result.isErr()) { 26 - return this.fail(res, result.error as any); 26 + return this.fail(res, result.error); 27 27 } 28 28 29 29 return this.ok(res, result.value);
+1 -1
src/modules/cards/infrastructure/http/controllers/GetUrlMetadataController.ts
··· 19 19 const result = await this.getUrlMetadataUseCase.execute({ url }); 20 20 21 21 if (result.isErr()) { 22 - return this.fail(res, result.error as any); 22 + return this.fail(res, result.error); 23 23 } 24 24 25 25 return this.ok(res, result.value);
+1 -1
src/modules/cards/infrastructure/http/controllers/GetUserCollectionsController.ts
··· 30 30 }); 31 31 32 32 if (result.isErr()) { 33 - return this.fail(res, result.error as any); 33 + return this.fail(res, result.error); 34 34 } 35 35 36 36 return this.ok(res, result.value);
+1 -1
src/modules/cards/infrastructure/http/controllers/GetUserProfileController.ts
··· 20 20 }); 21 21 22 22 if (result.isErr()) { 23 - return this.fail(res, result.error as any); 23 + return this.fail(res, result.error); 24 24 } 25 25 26 26 return this.ok(res, result.value);
+1 -1
src/modules/cards/infrastructure/http/controllers/GetUserUrlCardsController.ts
··· 26 26 }); 27 27 28 28 if (result.isErr()) { 29 - return this.fail(res, result.error as any); 29 + return this.fail(res, result.error); 30 30 } 31 31 32 32 return this.ok(res, result.value);
+1 -1
src/modules/cards/infrastructure/http/controllers/RemoveCardFromCollectionController.ts
··· 46 46 }); 47 47 48 48 if (result.isErr()) { 49 - return this.fail(res, result.error as any); 49 + return this.fail(res, result.error); 50 50 } 51 51 52 52 return this.ok(res, result.value);
+1 -1
src/modules/cards/infrastructure/http/controllers/RemoveCardFromLibraryController.ts
··· 29 29 }); 30 30 31 31 if (result.isErr()) { 32 - return this.fail(res, result.error as any); 32 + return this.fail(res, result.error); 33 33 } 34 34 35 35 return this.ok(res, result.value);
+1 -1
src/modules/cards/infrastructure/http/controllers/UpdateCollectionController.ts
··· 34 34 }); 35 35 36 36 if (result.isErr()) { 37 - return this.fail(res, result.error as any); 37 + return this.fail(res, result.error); 38 38 } 39 39 40 40 return this.ok(res, result.value);
+1 -1
src/modules/cards/infrastructure/http/controllers/UpdateNoteCardController.ts
··· 33 33 }); 34 34 35 35 if (result.isErr()) { 36 - return this.fail(res, result.error as any); 36 + return this.fail(res, result.error); 37 37 } 38 38 39 39 return this.ok(res, result.value);
+1 -1
src/modules/user/infrastructure/http/controllers/LogoutController.ts
··· 16 16 }); 17 17 18 18 if (result.isErr()) { 19 - return this.fail(res, result.error as any); 19 + return this.fail(res, result.error); 20 20 } 21 21 22 22 return this.ok(res, result.value);
+1 -1
src/modules/user/infrastructure/http/controllers/RefreshAccessTokenController.ts
··· 20 20 }); 21 21 22 22 if (result.isErr()) { 23 - return this.fail(res, result.error as any); 23 + return this.fail(res, result.error); 24 24 } 25 25 26 26 return this.ok(res, result.value);