Skip to content

Instantly share code, notes, and snippets.

@fadliawan
fadliawan / campur.js
Last active September 28, 2016 14:20
Asura + Wyvern
// Asura (CustomerController.js)
static async postCustomerWithMagic(ctx, next) {
// .. something something
} else if (primary_id_type === 'customerId') {
let { isProvisioned } = await api.classify(primary_id, primary_id_type);
result = isProvisioned ? null :
await api.provision(customer.id, 'spAccountId', customer.sku, effectiveDate, primary_id);
} else {
// .. something something