diff --git a/DOCUMENTATION.md b/DOCUMENTATION.md index 0bf043ef6..393b36ae6 100644 --- a/DOCUMENTATION.md +++ b/DOCUMENTATION.md @@ -6328,15 +6328,15 @@ generation is only supported when using a session token, not an API key. **Example** ```js -balena.models.os.getConfig('myorganization/myapp', { version: ''2.12.7+rev1.prod'' }).then(function(config) { +balena.models.os.getConfig('myorganization/myapp', { version: '2.12.7+rev1.prod' }).then(function(config) { fs.writeFile('foo/bar/config.json', JSON.stringify(config)); }); -balena.models.os.getConfig(123, { version: ''2.12.7+rev1.prod'' }).then(function(config) { +balena.models.os.getConfig(123, { version: '2.12.7+rev1.prod' }).then(function(config) { fs.writeFile('foo/bar/config.json', JSON.stringify(config)); }); -balena.models.os.getConfig('myorganization/myapp', { version: ''2.12.7+rev1.prod'' }, function(error, config) { +balena.models.os.getConfig('myorganization/myapp', { version: '2.12.7+rev1.prod' }, function(error, config) { if (error) throw error; fs.writeFile('foo/bar/config.json', JSON.stringify(config)); }); diff --git a/lib/models/os.ts b/lib/models/os.ts index 4215c84d2..a963db235 100644 --- a/lib/models/os.ts +++ b/lib/models/os.ts @@ -769,15 +769,15 @@ const getOsModel = function ( * @returns {Promise} * * @example - * balena.models.os.getConfig('myorganization/myapp', { version: ''2.12.7+rev1.prod'' }).then(function(config) { + * balena.models.os.getConfig('myorganization/myapp', { version: '2.12.7+rev1.prod' }).then(function(config) { * fs.writeFile('foo/bar/config.json', JSON.stringify(config)); * }); * - * balena.models.os.getConfig(123, { version: ''2.12.7+rev1.prod'' }).then(function(config) { + * balena.models.os.getConfig(123, { version: '2.12.7+rev1.prod' }).then(function(config) { * fs.writeFile('foo/bar/config.json', JSON.stringify(config)); * }); * - * balena.models.os.getConfig('myorganization/myapp', { version: ''2.12.7+rev1.prod'' }, function(error, config) { + * balena.models.os.getConfig('myorganization/myapp', { version: '2.12.7+rev1.prod' }, function(error, config) { * if (error) throw error; * fs.writeFile('foo/bar/config.json', JSON.stringify(config)); * });