fix(auth): change remaining subscription time stats to percentage

This commit is contained in:
Karol Sójko
2022-09-16 12:17:34 +02:00
parent 0b38617acf
commit 5eb957c82a
7 changed files with 42 additions and 15 deletions
@@ -138,7 +138,8 @@ describe('MySQLUserSubscriptionRepository', () => {
expect(updateQueryBuilder.update).toHaveBeenCalled()
expect(updateQueryBuilder.set).toHaveBeenCalledWith({
updatedAt: expect.any(Number),
updatedAt: 1000,
renewedAt: 1000,
endsAt: 1000,
})
expect(updateQueryBuilder.where).toHaveBeenCalledWith('subscription_id = :subscriptionId', {