refactor(server): use user model on oauth plugin (#10031)

close CLOUD-117
This commit is contained in:
fengmk2
2025-02-10 12:01:14 +00:00
parent 23364b59a0
commit 67b6c28d67
5 changed files with 48 additions and 64 deletions
+5 -1
View File
@@ -241,9 +241,13 @@ export class UserModel extends BaseModel {
// #region ConnectedAccount
async createConnectedAccount(data: CreateConnectedAccountInput) {
return await this.db.connectedAccount.create({
const account = await this.db.connectedAccount.create({
data,
});
this.logger.log(
`Connected account ${account.provider}:${account.id} created`
);
return account;
}
async getConnectedAccount(provider: string, providerAccountId: string) {