Update dependencies

This commit is contained in:
Jonathan Cremin 2019-06-08 07:52:57 -07:00
parent 1158db6d7e
commit 5a7e695e53
10 changed files with 864 additions and 870 deletions

View file

@ -29,7 +29,7 @@ export async function create(ctx) {
delete customer.subscriptions;
const user = await models.user.findById(ctx.user.id);
const user = await models.user.findByPk(ctx.user.id);
user.plan = 'Pro';
await user.save();
@ -69,7 +69,7 @@ export async function create(ctx) {
}
export async function cancel(ctx) {
const user = await models.user.findById(ctx.user.id);
const user = await models.user.findByPk(ctx.user.id);
const transactions = await user.getTransactions();
const transaction = transactions[0];