Skip to content

#4101 sponsor logo image id in backend#4145

Open
staysgt wants to merge 1 commit intodevelopfrom
#4101-sponsor-logo-image-id
Open

#4101 sponsor logo image id in backend#4145
staysgt wants to merge 1 commit intodevelopfrom
#4101-sponsor-logo-image-id

Conversation

@staysgt
Copy link
Copy Markdown
Contributor

@staysgt staysgt commented Apr 9, 2026

Changes

Added sponsor logo image id into backend endpoints.

Checklist

It can be helpful to check the Checks and Files changed tabs.
Please review the contributor guide and reach out to your Tech Lead if anything is unclear.
Please request reviewers and ping on slack only after you've gone through this whole checklist.

  • All commits are tagged with the ticket number
  • No linting errors / newline at end of file warnings
  • All code follows repository-configured prettier formatting
  • No merge conflicts
  • All checks passing
  • Screenshots of UI changes (see Screenshots section)
  • Remove any non-applicable sections of this template
  • Assign the PR to yourself
  • No yarn.lock changes (unless dependencies have changed)
  • Request reviewers & ping on Slack
  • PR is linked to the ticket (fill in the closes line below)

Closes #4101

@staysgt staysgt self-assigned this Apr 9, 2026
@staysgt staysgt requested review from chpy04 and wavehassman April 10, 2026 15:16
Copy link
Copy Markdown
Contributor

@wavehassman wavehassman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job sarah! Just a couple of changes

stockDescription?: string,
discountDescription?: string
discountDescription?: string,
logoImage?: Express.Multer.File
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sure to update the documentation

let logoImageId: string | undefined;
if (logoImage) {
const logoImageData = await uploadFile(logoImage);
if (!logoImageData?.id || !logoImageData?.name) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this check is unecessary
uploadFile either returns the name and id or throws
you can just get the id right from the uploadFile call

stockDescription?: string,
discountDescription?: string
discountDescription?: string,
logoImage?: Express.Multer.File
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also here for comments

let logoImageId: string | undefined;
if (logoImage) {
const logoImageData = await uploadFile(logoImage);
if (!logoImageData?.id || !logoImageData?.name) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same thing with the error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Guest Page Improvements] - Add Sponsors LogoImageId to Endpoints

2 participants