diff --git a/lib/decodeOpaqueId.js b/lib/decodeOpaqueId.js index a428445..bbe0a71 100644 --- a/lib/decodeOpaqueId.js +++ b/lib/decodeOpaqueId.js @@ -5,7 +5,7 @@ import config from "./config.js"; * @method * @memberof GraphQL/Transforms * @summary Transforms an opaque ID to an internal ID. Returns the `id` - * unchanged and the `namespace` as null if the `REACTION_SHOULD_ENCODE_IDS` + * unchanged and the `namespace` as null if the `REACTION_SHOULD_ENCODE_IDS` * environment variable is `false` * @param {String} opaqueId The ID to transform * @returns {String} An internal ID @@ -17,8 +17,7 @@ export default function decodeOpaqueId(opaqueId) { return { namespace: null, id: opaqueId }; } - const [namespace, id] = Buffer - .from(opaqueId, "base64") + const [namespace, id] = Buffer.from(opaqueId, "base64") .toString("utf8") .split(":", 2);