Skip to content

Commit

Permalink
Set default deleted value to avoid inconsistencies (#1427)
Browse files Browse the repository at this point in the history
Set default deleted value while submitting the app to avoid
inconsistencies
  • Loading branch information
beastoin authored Nov 28, 2024
2 parents ea5c9ba + 2486d5e commit e404367
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/routers/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def get_approved_apps(include_reviews: bool = False):
def submit_app(app_data: str = Form(...), file: UploadFile = File(...), uid=Depends(auth.get_current_user_uid)):
data = json.loads(app_data)
data['approved'] = False
data['deleted'] = False
data['status'] = 'under-review'
data['name'] = data['name'].strip()
new_app_id = slugify(data['name']) + '-' + str(ULID())
Expand Down

0 comments on commit e404367

Please sign in to comment.