export DB, Event creation, broker with city/state

This commit is contained in:
2024-09-12 15:13:56 +02:00
parent 60866473f7
commit 68d2615f0f
21 changed files with 242 additions and 40 deletions

View File

@@ -17,7 +17,7 @@ export class MailService {
async sendInquiry(mailInfo: MailInfo): Promise<void | ErrorResponse> {
try {
const validatedSender = SenderSchema.parse(mailInfo.sender);
SenderSchema.parse(mailInfo.sender);
} catch (error) {
if (error instanceof ZodError) {
const formattedErrors = error.errors.map(err => ({
@@ -54,7 +54,7 @@ export class MailService {
}
async sendRequest(mailInfo: MailInfo): Promise<void | ErrorResponse> {
try {
const validatedSender = SenderSchema.parse(mailInfo.sender);
SenderSchema.parse(mailInfo.sender);
} catch (error) {
if (error instanceof ZodError) {
const formattedErrors = error.errors.map(err => ({
@@ -97,7 +97,7 @@ export class MailService {
}
async send2Friend(shareByEMail: ShareByEMail): Promise<void | ErrorResponse> {
try {
const validatedSender = ShareByEMailSchema.parse(shareByEMail);
ShareByEMailSchema.parse(shareByEMail);
} catch (error) {
if (error instanceof ZodError) {
const formattedErrors = error.errors.map(err => ({