Subscriptions: fix error typo

This commit is contained in:
rrooij 2018-03-23 19:53:28 +01:00
parent 5ee8347115
commit a9054b30dd

View file

@ -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) => {