Skip to content

Commit

Permalink
fix(db): Fix saving premium
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Crespi committed Dec 16, 2019
1 parent 5ca225c commit 216c95b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/framework/services/DatabaseService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ export class DatabaseService {
public async savePremiumSubscription(sub: Partial<PremiumSubscription>) {
const res = await this.insertOrUpdate(
TABLE.premiumSubscriptions,
['memberId', 'validUntil', 'isFreeTier', 'amount', 'maxGuilds', 'reason'],
['memberId', 'validUntil', 'isFreeTier', 'isPatreon', 'isStaff', 'amount', 'maxGuilds', 'reason'],
['validUntil'],
[sub],
() => GLOBAL_SHARD_ID
Expand Down

0 comments on commit 216c95b

Please sign in to comment.