From bc189917b5eb0aae5152cba4ecde4778450a4b1c Mon Sep 17 00:00:00 2001 From: Remy Lalanne Date: Fri, 16 Aug 2024 17:23:26 +0800 Subject: [PATCH] fix #286 ulid error when null _id --- server-nodejs/extensions/ulid.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server-nodejs/extensions/ulid.js b/server-nodejs/extensions/ulid.js index 3cb0ad50..7fcb4fd9 100644 --- a/server-nodejs/extensions/ulid.js +++ b/server-nodejs/extensions/ulid.js @@ -18,10 +18,9 @@ module.exports = function (app) { const pattern = new RegExp(app.locals.conf.ulid.replacedPattern || '{#}'); events.attach('pre-create', function (nodes) { for(var i=0; i