diff --git a/lib/directory/directory.js b/lib/directory/directory.js index d88e1b43..6dfb18e3 100644 --- a/lib/directory/directory.js +++ b/lib/directory/directory.js @@ -94,8 +94,8 @@ class Directory extends Base { * @returns {Promise} A Promise object resolved with the updated {@link DirectoryEntry}. */ update(entry, opts = {}) { - // compatibility code for 7.10 where the `id` field is not set by the server - // works only if the `idFiel` of the directory is `id` + // compatibility code for 8.10 where the `id` field is not set by the server + // works only if the `idField` of the directory is `id` const id = entry.id || entry.properties.id; opts.body = { id, diff --git a/lib/directory/entry.js b/lib/directory/entry.js index c1e60777..1b89a8d8 100644 --- a/lib/directory/entry.js +++ b/lib/directory/entry.js @@ -1,7 +1,7 @@ const extend = require('extend'); const Base = require('../base'); -const { LTS_2016 } = require('../server-version'); +const { LTS_2017 } = require('../server-version'); /** * The `DirectoryEntry` class wraps a directory entry. @@ -22,9 +22,9 @@ class DirectoryEntry extends Base { this.properties = {}; this._dirtyProperties = {}; const { serverVersion } = this._directory._nuxeo; - // compatibility code for 7.10 (or unknown version) - make all properties dirty so that + // compatibility code for 8.10 (or unknown version) - make all properties dirty so that // the `idField` will be passed when updating - if (!serverVersion || serverVersion.lt(LTS_2016)) { + if (!serverVersion || serverVersion.lt(LTS_2017)) { this._dirtyProperties = extend({}, entry.properties); } extend(true, this, entry);