Lint spacing
This commit is contained in:
parent
4fc4d314fd
commit
2d8b62fb84
@ -161,7 +161,6 @@ function saveBuilding(building_id, building, user_id) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
}).catch(function (error) {
|
}).catch(function (error) {
|
||||||
// TODO report transaction error as 'Need to re-fetch building before update'
|
|
||||||
console.error(error);
|
console.error(error);
|
||||||
return { error: error };
|
return { error: error };
|
||||||
});
|
});
|
||||||
@ -209,7 +208,6 @@ function likeBuilding(building_id, user_id) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
}).catch(function (error) {
|
}).catch(function (error) {
|
||||||
// TODO report transaction error as 'Need to re-fetch building before update'
|
|
||||||
console.error(error);
|
console.error(error);
|
||||||
if (error.detail && error.detail.includes("already exists")) {
|
if (error.detail && error.detail.includes("already exists")) {
|
||||||
// 'already exists' is thrown if user already liked it
|
// 'already exists' is thrown if user already liked it
|
||||||
@ -262,7 +260,6 @@ function unlikeBuilding(building_id, user_id) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
}).catch(function (error) {
|
}).catch(function (error) {
|
||||||
// TODO report transaction error as 'Need to re-fetch building before update'
|
|
||||||
console.error(error);
|
console.error(error);
|
||||||
if (error.detail && error.detail.includes("already exists")) {
|
if (error.detail && error.detail.includes("already exists")) {
|
||||||
// 'already exists' is thrown if user already liked it
|
// 'already exists' is thrown if user already liked it
|
||||||
|
Loading…
Reference in New Issue
Block a user