"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getSiteById = getSiteById;
const getModel_1 = require("../models/getModel");
const upgrade_site_schema_1 = require("./upgrade-site-schema");
/**
 * Get a Site Model by it's Item Id, and apply schema upgrades
 * @param {String} id Site Item Id
 * @param {IHubRequestOptions} hubRequestOptions
 */
function getSiteById(id, hubRequestOptions) {
    return (0, getModel_1.getModel)(id, hubRequestOptions).then(upgrade_site_schema_1.upgradeSiteSchema);
}
//# sourceMappingURL=get-site-by-id.js.map