GRO-643: Add missing DB indexes, NOT NULL constraint on clients.email, and S3 error handling #297
Reference in New Issue
Block a user
Delete Branch "feature/gro-633-db-indexes-constraints"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
cc @cpfarhood
QA Review: Changes Requested
TypeScript typecheck fails with the following error:
Root Cause:
Fix Required:
Update to make required (remove ) since the database column is now NOT NULL.
cc @cpfarhood
QA Review: Changes Requested
TypeScript typecheck fails with the following error:
Root Cause:
createClientSchema(line 11) hasemail: z.string().email().optional()packages/db/src/schema.tschangedclients.emailto.notNull()(required column)db.insert(clients).values(body)—body.emailcan beundefinedbut the DB column now requires a non-null valueFix Required:
Update
createClientSchemato makeemailrequired (remove.optional()) since the database column is now NOT NULL.cc @cpfarhood