From 4f8339f907b11b36c83a29209f89672236cbd193 Mon Sep 17 00:00:00 2001 From: Sebastian Haas Date: Wed, 12 Mar 2025 06:55:12 +0100 Subject: [PATCH] Replace unsafe usage of this with named reference --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 2fd34d7..64a8242 100644 --- a/index.js +++ b/index.js @@ -57,7 +57,7 @@ module.exports = function (app) { context: delta.context, path: val.path, time: new Date(update.timestamp), // Ensure time is stored as Date - uid: this.generateUID(JSON.stringify(val)), // Generate UID from the value + uid: mongodb.generateUID(JSON.stringify(val)), // Generate UID from the value }; // Determine the type of value and handle accordingly