feat: introduce reconnection support for Flickr

This commit is contained in:
Ali BARIN
2021-10-20 21:51:13 +02:00
parent ec4dd8a037
commit 1654abb197
7 changed files with 105 additions and 8 deletions

View File

@@ -14,7 +14,10 @@ const createAuthLinkResolver = async (params: Params, req: RequestWithCurrentUse
const appClass = (await import(`../../apps/${connection.key}`)).default;
const appInstance = new appClass({ consumerKey: connection.data.consumerKey, consumerSecret: connection.data.consumerSecret });
const appInstance = new appClass({
consumerKey: connection.data.consumerKey,
consumerSecret: connection.data.consumerSecret
});
const authLink = await appInstance.createAuthLink();
await connection.$query().patch({