in paranoid table, Can I merge these two queries into one
await activeSubscription.update({
subscriptionStatus: constants.SUBSCRIPTION_STATUS.CANCELLED
});
await activeSubscription.destroy();
Basically I want to also set the status as cancelled, at the time of deleting the subscription.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742293482a4416649.html
评论列表(0条)