mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
e0269e268f
Stale in-memory project documents in ScheduleBase (and request-scoped copies in api.php/general.php) were overwriting current DB state when updateProjectAccess triggered. Because Database::updateDocument uses array_merge with the passed document taking priority, cached projects missing recent OAuth provider changes would silently disable them. Now fetches a fresh project document from the DB before writing, so only accessedAt is updated without clobbering other fields.