mirror of
https://github.com/HeyPuter/puter.git
synced 2026-09-28 16:17:05 +00:00
fix: undefined svc_fs
This fixes PD incident Q3ZNFWILVOFKU3. This issue was not caught in testing - in fact after deleting a user the files were deleted as expected, but it's unclear to me how I observed that with this issue present.
This commit is contained in:
@@ -1138,6 +1138,7 @@ async function gen_public_token(file_uuid, ttl = 24 * 60 * 60){
|
||||
async function deleteUser(user_id){
|
||||
/** @type BaseDatabaseAccessService */
|
||||
const db = services.get('database').get(DB_READ, 'filesystem');
|
||||
const svc_fs = services.get('filesystem');
|
||||
|
||||
// get a list of up to 5000 files owned by this user
|
||||
for ( let offset=0; true; offset += 5000 ) {
|
||||
|
||||
Reference in New Issue
Block a user