in src/models/basic/remote.js [133:148]
async update(value) {
this._response = value;
if (value.status && value.status === 401) {
this.error = (value.data ? value.data.message : undefined) || value.message;
this.failed = true;
} else if (value.status && value.status === 200) {
this._value = await this.postprocess(value);
this._loaded = true;
this.error = undefined;
this.failed = false;
} else {
this.error = (value.data ? value.data.message : undefined) || value.message;
this.failed = true;
this._loaded = false;
}
}