mirror of
https://github.com/azures04/crafatar.git
synced 2026-05-06 11:00:39 +02:00
adjust 422 messages
This commit is contained in:
@@ -45,7 +45,7 @@ module.exports = function(req, callback) {
|
||||
} else if (!helpers.id_valid(userId)) {
|
||||
callback({
|
||||
status: -2,
|
||||
body: "Invalid userid"
|
||||
body: "Invalid UserID"
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ module.exports = function(req, callback) {
|
||||
if (!helpers.id_valid(userId)) {
|
||||
callback({
|
||||
status: -2,
|
||||
body: "Invalid userid"
|
||||
body: "Invalid UserID"
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -59,13 +59,13 @@ module.exports = function(req, callback) {
|
||||
if (scale < config.min_scale || scale > config.max_scale) {
|
||||
callback({
|
||||
status: -2,
|
||||
body: "422 Invalid Scale"
|
||||
body: "Invalid Scale"
|
||||
});
|
||||
return;
|
||||
} else if (!helpers.id_valid(userId)) {
|
||||
callback({
|
||||
status: -2,
|
||||
body: "422 Invalid ID"
|
||||
body: "Invalid UserID"
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ module.exports = function(req, callback) {
|
||||
if (!helpers.id_valid(userId)) {
|
||||
callback({
|
||||
status: -2,
|
||||
body: "Invalid userid"
|
||||
body: "Invalid UserID"
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user