0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00

Fixed failing tests

refs 492960b9a8 (diff-658dc5d7181e4b0fe52a60085b938fa830b22a82a0f58e7fe49a1455984c58ce)

- The `this` context binding was not set on some of the class methods causing all sorts of chaos
This commit is contained in:
Naz 2022-08-02 19:21:32 +01:00
parent 492960b9a8
commit f65c068442

View file

@ -22,6 +22,12 @@ class CacheManager {
this.publicSettings = publicSettings;
this.calculatedFields = [];
this.get = this.get.bind(this);
this.set = this.set.bind(this);
this.getAll = this.getAll.bind(this);
this.getPublic = this.getPublic.bind(this);
this.reset = this.reset.bind(this);
this._doGet = this._doGet.bind(this);
this._updateSettingFromModel = this._updateSettingFromModel.bind(this);
this._updateCalculatedField = this._updateCalculatedField.bind(this);
}