Use Settings.get

This commit is contained in:
Louis Lam
2022-07-31 23:41:29 +08:00
parent a3b1612938
commit 2389b604fe
2 changed files with 3 additions and 2 deletions

View File

@@ -289,6 +289,7 @@ exports.postgresQuery = function (connectionString, query) {
* Retrieve value of setting based on key
* @param {string} key Key of setting to retrieve
* @returns {Promise<any>} Value
* @deprecated Use await Settings.get(key)
*/
exports.setting = async function (key) {
return await Settings.get(key);