mirror of
https://github.com/lowdefy/lowdefy.git
synced 2025-02-11 14:20:07 +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;
|
if (linkAccountPlugins.length === 0) return undefined;
|
||||||
|
|
||||||
async function linkAccountEvent({ account, provider, user }) {
|
async function linkAccountEvent({ account, profile, user }) {
|
||||||
for (const plugin of linkAccountPlugins) {
|
for (const plugin of linkAccountPlugins) {
|
||||||
await plugin.fn({
|
await plugin.fn({
|
||||||
properties: plugin.properties ?? {},
|
properties: plugin.properties ?? {},
|
||||||
account,
|
account,
|
||||||
provider,
|
profile,
|
||||||
user,
|
user,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user