Subscriptions: fix error typo
This commit is contained in:
parent
5ee8347115
commit
a9054b30dd
1 changed files with 3 additions and 3 deletions
|
@ -254,7 +254,7 @@ module.exports.get = (listId, cid, callback) => {
|
||||||
cid = (cid || '').toString().trim();
|
cid = (cid || '').toString().trim();
|
||||||
|
|
||||||
if (!cid) {
|
if (!cid) {
|
||||||
return callback(new Error(_('Missing Subbscription ID')));
|
return callback(new Error(_('Missing Subscription ID')));
|
||||||
}
|
}
|
||||||
|
|
||||||
db.getConnection((err, connection) => {
|
db.getConnection((err, connection) => {
|
||||||
|
@ -284,7 +284,7 @@ module.exports.getById = (listId, id, callback) => {
|
||||||
id = Number(id) || 0;
|
id = Number(id) || 0;
|
||||||
|
|
||||||
if (!id) {
|
if (!id) {
|
||||||
return callback(new Error(_('Missing Subbscription ID')));
|
return callback(new Error(_('Missing Subscription ID')));
|
||||||
}
|
}
|
||||||
|
|
||||||
db.getConnection((err, connection) => {
|
db.getConnection((err, connection) => {
|
||||||
|
@ -312,7 +312,7 @@ module.exports.getById = (listId, id, callback) => {
|
||||||
|
|
||||||
module.exports.getByEmail = (listId, email, callback) => {
|
module.exports.getByEmail = (listId, email, callback) => {
|
||||||
if (!email) {
|
if (!email) {
|
||||||
return callback(new Error(_('Missing Subbscription email address')));
|
return callback(new Error(_('Missing Subscription email address')));
|
||||||
}
|
}
|
||||||
|
|
||||||
db.getConnection((err, connection) => {
|
db.getConnection((err, connection) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue