accounts.check and set should return a promise #1

Open
opened 2020-07-13 16:55:58 +00:00 by Ghost · 0 comments

Line199 of greenlock/accounts.js

    return db
        .check({
            //keypair: undefined,
            //receipt: undefined,
            email: email,
            subscriberEmail: email,
            customerEmail: args.customerEmail || mconf.customerEmail,
            account: account,
            directoryUrl:
                args.directoryUrl ||
                mconf.directoryUrl ||
                gnlck._defaults.directoryUrl
        })
        .then(function(fullAccount) {
            if (!fullAccount) {
                return null;
            }

            return fullAccount;
        });

it expects a promise from the store middleware.

Line199 of greenlock/accounts.js ``` return db .check({ //keypair: undefined, //receipt: undefined, email: email, subscriberEmail: email, customerEmail: args.customerEmail || mconf.customerEmail, account: account, directoryUrl: args.directoryUrl || mconf.directoryUrl || gnlck._defaults.directoryUrl }) .then(function(fullAccount) { if (!fullAccount) { return null; } return fullAccount; }); ``` it expects a promise from the store middleware.
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: root/gl-store-s3.js#1
No description provided.