1
0
Fork 0
forked from OpenNeo/impress
impress/src/server/types
Matchu 2fb84b0b0f Better handle editUsername when Auth0 update fails
Hmm, right, okay, we *generally* should have all users imported to Auth0, but this can fail if the cron job is behind or Auth0 rejected the data (e.g. user data in a format it doesn't support).

Previously, this would apply the name change in the database, but return Auth0's "The user does not exist." error to the GraphQL client, making it look like the update fully failed.

In this change, we handle that case differently: when the Auth0 update fails with a 404, we proceed but log a warning; and when Auth0 fails with an unexpected error, we roll back the database change in addition to raising the error to the client, to keep the behavior obvious and consistent.
2021-10-21 12:17:12 -07:00
..
AppearanceLayer.js Use /api/assetImage for all image sizes 2021-08-19 17:56:09 -07:00
ClosetList.js Wire up the Remove button for item lists 2021-09-30 19:26:09 -07:00
Item.js Wire up the Remove button for item lists 2021-09-30 19:26:09 -07:00
MutationsForSupport.js Better handle editUsername when Auth0 update fails 2021-10-21 12:17:12 -07:00
Outfit.js Fix GraphQL docstrings 2021-05-27 16:51:31 -07:00
Pet.js Fix GraphQL docstrings 2021-05-27 16:51:31 -07:00
PetAppearance.js Fix GraphQL docstrings 2021-05-27 16:51:31 -07:00
User.js Fix GraphQL docstrings 2021-05-27 16:51:31 -07:00
Zone.js Use ES module syntax in backend instead of require 2021-02-02 22:26:55 -08:00