Skip to content

Commit

Permalink
Removing BB dependency in another file
Browse files Browse the repository at this point in the history
#14940
another file that was using BB has been freed of the dependency. Both the files are core/frontend/meta/get-meta.js is dependent on image-dimensions.js in the same folder.
BB was removed from image-dimensions in my previous commit
  • Loading branch information
Navarjun authored and ErisDS committed Aug 24, 2022
1 parent 3fee014 commit 5a94add
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ghost/core/core/frontend/meta/get-meta.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const Promise = require('bluebird');
const settingsCache = require('../../shared/settings-cache');
const urlUtils = require('../../shared/url-utils');
const logging = require('@tryghost/logging');
Expand Down Expand Up @@ -81,7 +80,7 @@ function getMetaData(data, root) {
}

// @TODO: wrap this in a utility function
return Promise.props(getImageDimensions(metaData)).then(function () {
return getImageDimensions(metaData).then(function () {
metaData.structuredData = getStructuredData(metaData);
metaData.schema = getSchema(metaData, data);

Expand Down

0 comments on commit 5a94add

Please sign in to comment.