mirror of
https://github.com/lowdefy/lowdefy.git
synced 2025-02-05 13:59:56 +08:00
fix(api): Should be passing profile, not provider.
This commit is contained in:
parent
a90f10b68d
commit
02f9fe0d5e
@ -25,12 +25,12 @@ function createLinkAccountEvent(context, { authConfig, plugins }) {
|
||||
|
||||
if (linkAccountPlugins.length === 0) return undefined;
|
||||
|
||||
async function linkAccountEvent({ account, provider, user }) {
|
||||
async function linkAccountEvent({ account, profile, user }) {
|
||||
for (const plugin of linkAccountPlugins) {
|
||||
await plugin.fn({
|
||||
properties: plugin.properties ?? {},
|
||||
account,
|
||||
provider,
|
||||
profile,
|
||||
user,
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user