fix: also check this.entry.id when checking mysql_id

There is a case where this.entry.id has a value in FSNodeContext while
this.mysql_id does not. I was under the impression that this state was
not possibole. The cause of this eludes me. This commit does not correct
the root cause - it only adds a workaround to this issue by falling back
to this.entry.id if this.mysql_id is `undefined`.
This commit is contained in:
KernelDeimos
2025-11-04 21:01:50 -05:00
committed by Eric Dubé
parent a44e1fc074
commit cc7369d9d7
+1 -1
View File
@@ -627,7 +627,7 @@ module.exports = class FSNodeContext {
if ( key === 'mysql-id' ) {
await this.fetchEntry();
return this.mysql_id;
return this.mysql_id ?? this.entry.id;
}
if ( key === 'owner' ) {