Updates
This commit is contained in:
+1
-1
@@ -6,5 +6,5 @@ type GetSchemaReturn = {
|
||||
/**
|
||||
* # Get Schema for Database, table, or field *
|
||||
*/
|
||||
export default function getSchema({ key, database, field, table, user_id, }: GetSchemaAPIParam): Promise<GetSchemaReturn>;
|
||||
export default function getSchema({ key, database, field, table, user_id, env, }: GetSchemaAPIParam): Promise<GetSchemaReturn>;
|
||||
export {};
|
||||
|
||||
+2
-2
@@ -18,8 +18,8 @@ const grab_host_names_1 = __importDefault(require("../utils/grab-host-names"));
|
||||
* # Get Schema for Database, table, or field *
|
||||
*/
|
||||
function getSchema(_a) {
|
||||
return __awaiter(this, arguments, void 0, function* ({ key, database, field, table, user_id, }) {
|
||||
const grabedHostNames = (0, grab_host_names_1.default)();
|
||||
return __awaiter(this, arguments, void 0, function* ({ key, database, field, table, user_id, env, }) {
|
||||
const grabedHostNames = (0, grab_host_names_1.default)({ env });
|
||||
const { host, port, scheme } = grabedHostNames;
|
||||
/**
|
||||
* Make https request
|
||||
|
||||
Reference in New Issue
Block a user