// tslint:disable:no-console // import * as moment from 'moment'; import * as mongoose from 'mongoose'; import { chevre } from '../../../lib/index'; async function main() { await mongoose.connect(process.env.MONGOLAB_URI); const accountRepo = new chevre.repository.Account(mongoose.connection); // 不要な所有権を削除 const result = await accountRepo.authorizeAmount({ accountNumber: '139151625010963', amount: 10, transaction: { id: 'test' }, force: false }); console.log('result:', result); } main() .then(console.log) .catch(console.error);