-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* T-29 Fix checked login abort error if path = login * T-29 Add SuccessWarning when attempt add already favorite product to favorites * T-29 Fix rollback transaction to return warning
- Loading branch information
Showing
6 changed files
with
36 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
Sources/App/Helpers/ErrorFactory/ErrorFactory+SuccessWarning.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// ErrorFactory+SuccessWarning.swift | ||
// MEOWLSServer | ||
// | ||
// Created by Artem Mayer on 29.10.2024. | ||
// | ||
|
||
import Foundation | ||
|
||
enum SuccessWarning: String { | ||
|
||
case productAlreadyStarred = "productAlreadyStarred" | ||
|
||
var description: String { | ||
switch self { | ||
case .productAlreadyStarred: | ||
return "Attempting to add a product to favorites that has already been added." | ||
|
||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters