Skip to content

Commit

Permalink
Add tier to client record
Browse files Browse the repository at this point in the history
  • Loading branch information
forgetso committed Jan 20, 2025
1 parent 996b7b2 commit 5595cce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/database/src/databases/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class ClientDatabase extends MongoDatabase implements IClientDatabase {
],
activated: true,
},
{ account: 1, settings: 1 },
{ account: 1, settings: 1, tier: 1 },
)
.lean<ClientRecord[]>();
await this.close();
Expand Down
2 changes: 1 addition & 1 deletion packages/types-database/src/types/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ import type { PendingCaptchaRequest } from "../provider/pendingCaptchaRequest.js
import { UserSettingsSchema } from "./client.js";
import type { IDatabase } from "./mongo.js";

export type IUserDataSlim = Pick<IUserData, "account" | "settings">;
export type IUserDataSlim = Pick<IUserData, "account" | "settings" | "tier">;

export type ClientRecord = IUserDataSlim & Document;

Expand Down

0 comments on commit 5595cce

Please sign in to comment.