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:
KernelDeimos
2025-11-04 21:32:41 -05:00
committed by Eric Dubé
parent 4b959f3f4b
commit e7357054b0
+1
View File
@@ -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 ) {