diff --git a/Common/Server/Services/DatabaseService.ts b/Common/Server/Services/DatabaseService.ts index 8efdfa5dc66..3a0ab33288a 100644 --- a/Common/Server/Services/DatabaseService.ts +++ b/Common/Server/Services/DatabaseService.ts @@ -1392,6 +1392,9 @@ class DatabaseService extends BaseService { ...data, } as any; + logger.debug("Updated Item"); + logger.debug(JSON.stringify(updatedItem, null, 2)); + await this.getRepository().save(updatedItem); // hit workflow. diff --git a/Common/Types/ObjectID.ts b/Common/Types/ObjectID.ts index 7a1a01c3c30..b6c83a08b49 100644 --- a/Common/Types/ObjectID.ts +++ b/Common/Types/ObjectID.ts @@ -36,7 +36,7 @@ export default class ObjectID extends DatabaseProperty { } public equals(other: ObjectID): boolean { - return this.id.toString() === other.id.toString(); + return (this.id?.toString() || "") === (other.id?.toString() || ""); } public override toString(): string {