We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd01fd8 commit bf4bde8Copy full SHA for bf4bde8
structures/methods/get.js
@@ -7,6 +7,9 @@ module.exports = async function(table, key){
7
if(!table || typeof table !== "string") throw new TypeError(errors.table.replace("{received}", typeof table));
8
if(!key || typeof key !== "string") throw new TypeError(errors.key.replace("{received}", typeof key));
9
10
+ let tables = await this.tables();
11
+ if(!tables.includes(table)) return null;
12
+
13
let keys = key.split('.'),
14
keys2 = key.split('.');
15
if(keys.length > 1){
0 commit comments