stakwork / sphinx-tribes

Backend for sphinx tribes and bounties. The bounty platform pays out in bitcoin. Sign up with Sphinx Chat, complete a bounty, and earn bitcoin! Go to our website for available bounties.
https://community.sphinx.chat/bounties
33 stars 60 forks source link

Trim whitespaces from org names when an org is created or saved #1548

Closed ecurrencyhodler closed 8 months ago

ecurrencyhodler commented 8 months ago

Describe the bug Currently an org can be created and saved with just spaces.

Expected behavior When an org name is created or saved, trim spaces in the front and end of the text that is received. Spaces inbetween should be preserved. This is related to https://github.com/stakwork/sphinx-tribes-frontend/issues/267

Also return a failure if an org is being created or saved with just spaces.

Desktop (please complete the following information):

Acceptance Criteria

Here is an example backend test

AbdulWahab3181 commented 8 months ago

@ecurrencyhodler could you please assign me?

ecurrencyhodler commented 8 months ago

This is yours