docs: function (key, editor) {
          const previousValue = db.get(key);
  
          return new Promise(function (resolve, reject) {
              // If there is no previous value, then
              // it cannot be frozen, and thus is editable.
              if (!previousValue) {
                  resolve(true)
              // Otherwise, if the key is frozen, then only
              // admins can edit the factoid. If the key
              // isn't frozen, it's editable by everybody.
              } else {
                  resolve(previousValue.frozen ? isEditorAdmin(editor) : true);
              }
          })
          .then(function (ifCanEdit) {
              return ifCanEdit ? Ok(previousValue) : Fail("frozen");
          });
      }