mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-04 06:00:46 -05:00
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:
@@ -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' ) {
|
||||
|
||||
Reference in New Issue
Block a user