hotfix: emit the missing event, fix check condition
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test (18.x) (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled

This commit is contained in:
XiaochenCui
2025-07-30 10:25:13 -07:00
committed by Eric Dubé
parent 3016eb6363
commit 85a0f71bfd
2 changed files with 5 additions and 1 deletions
@@ -722,6 +722,10 @@ class PuterFSProvider extends putility.AdvancedBase {
(async () => {
await entryOp.awaitDone();
resourceService.free(uid);
svc_event.emit('fs.written.file', {
node,
context: this.context,
});
})();
state_upload.post_insert({
@@ -98,7 +98,7 @@ class WorkerService extends BaseService {
const result = await svc_su.sudo(async ()=> {
return await es_subdomain.select({ predicate: new Eq({ key: "root_dir", value: data.node }) });
});
if (!result)
if (!result || result.length === 0)
return;
// Person who just wrote file (not necessarily file owner)