alpha
Login
or
Join now
nandi.uk
/
semble
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
update error types on controllers
author
Wesley Finck
date
9 months ago
(Oct 3, 2025, 11:15 AM -0700)
commit
0f460133
0f4601335137ade466de23e3364435cb809737c6
parent
f4686b62
f4686b6241654630a1c8d9151c56faf1262a5de0
+21
-21
21 changed files
Expand all
Collapse all
Unified
Split
src
modules
cards
infrastructure
http
controllers
AddCardToCollectionController.ts
AddCardToLibraryController.ts
AddUrlToLibraryController.ts
CreateCollectionController.ts
DeleteCollectionController.ts
GetCollectionPageController.ts
GetLibrariesForCardController.ts
GetMyCollectionsController.ts
GetMyProfileController.ts
GetMyUrlCardsController.ts
GetUrlCardViewController.ts
GetUrlMetadataController.ts
GetUserCollectionsController.ts
GetUserProfileController.ts
GetUserUrlCardsController.ts
RemoveCardFromCollectionController.ts
RemoveCardFromLibraryController.ts
UpdateCollectionController.ts
UpdateNoteCardController.ts
user
infrastructure
http
controllers
LogoutController.ts
RefreshAccessTokenController.ts
+1
-1
src/modules/cards/infrastructure/http/controllers/AddCardToCollectionController.ts
View file
Reviewed
···
32
32
});
33
33
34
34
if (result.isErr()) {
35
35
-
return this.fail(res, result.error as any);
35
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
View file
Reviewed
···
33
33
});
34
34
35
35
if (result.isErr()) {
36
36
-
return this.fail(res, result.error as any);
36
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
View file
Reviewed
···
29
29
});
30
30
31
31
if (result.isErr()) {
32
32
-
return this.fail(res, result.error as any);
32
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
View file
Reviewed
···
28
28
});
29
29
30
30
if (result.isErr()) {
31
31
-
return this.fail(res, result.error as any);
31
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
View file
Reviewed
···
27
27
});
28
28
29
29
if (result.isErr()) {
30
30
-
return this.fail(res, result.error as any);
30
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
View file
Reviewed
···
29
29
});
30
30
31
31
if (result.isErr()) {
32
32
-
return this.fail(res, result.error as any);
32
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
View file
Reviewed
···
19
19
const result = await this.getLibrariesForCardUseCase.execute({ cardId });
20
20
21
21
if (result.isErr()) {
22
22
-
return this.fail(res, result.error as any);
22
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
View file
Reviewed
···
31
31
});
32
32
33
33
if (result.isErr()) {
34
34
-
return this.fail(res, result.error as any);
34
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
View file
Reviewed
···
19
19
const result = await this.getProfileUseCase.execute({ userId });
20
20
21
21
if (result.isErr()) {
22
22
-
return this.fail(res, result.error as any);
22
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
View file
Reviewed
···
27
27
});
28
28
29
29
if (result.isErr()) {
30
30
-
return this.fail(res, result.error as any);
30
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
View file
Reviewed
···
23
23
});
24
24
25
25
if (result.isErr()) {
26
26
-
return this.fail(res, result.error as any);
26
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
View file
Reviewed
···
19
19
const result = await this.getUrlMetadataUseCase.execute({ url });
20
20
21
21
if (result.isErr()) {
22
22
-
return this.fail(res, result.error as any);
22
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
View file
Reviewed
···
30
30
});
31
31
32
32
if (result.isErr()) {
33
33
-
return this.fail(res, result.error as any);
33
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
View file
Reviewed
···
20
20
});
21
21
22
22
if (result.isErr()) {
23
23
-
return this.fail(res, result.error as any);
23
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
View file
Reviewed
···
26
26
});
27
27
28
28
if (result.isErr()) {
29
29
-
return this.fail(res, result.error as any);
29
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
View file
Reviewed
···
46
46
});
47
47
48
48
if (result.isErr()) {
49
49
-
return this.fail(res, result.error as any);
49
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
View file
Reviewed
···
29
29
});
30
30
31
31
if (result.isErr()) {
32
32
-
return this.fail(res, result.error as any);
32
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
View file
Reviewed
···
34
34
});
35
35
36
36
if (result.isErr()) {
37
37
-
return this.fail(res, result.error as any);
37
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
View file
Reviewed
···
33
33
});
34
34
35
35
if (result.isErr()) {
36
36
-
return this.fail(res, result.error as any);
36
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
View file
Reviewed
···
16
16
});
17
17
18
18
if (result.isErr()) {
19
19
-
return this.fail(res, result.error as any);
19
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
View file
Reviewed
···
20
20
});
21
21
22
22
if (result.isErr()) {
23
23
-
return this.fail(res, result.error as any);
23
23
+
return this.fail(res, result.error);
24
24
}
25
25
26
26
return this.ok(res, result.value);