chore: Introduce app info converter and use JSON for info files
This commit is contained in:
@@ -9,7 +9,7 @@ type Params = {
|
||||
}
|
||||
|
||||
const getAppConnectionsResolver = async (params: Params, req: RequestWithCurrentUser) => {
|
||||
const app = await App.findOneByKey(params.key);
|
||||
const app = App.findOneByKey(params.key);
|
||||
const connections = await Connection.query()
|
||||
.where({ user_id: req.currentUser.id, key: params.key })
|
||||
|
||||
|
@@ -14,7 +14,7 @@ const getAppResolver = async (params: Params, req: RequestWithCurrentUser) => {
|
||||
throw new Error('No key provided.')
|
||||
}
|
||||
|
||||
const app = await App.findOneByKey(params.key);
|
||||
const app = App.findOneByKey(params.key);
|
||||
|
||||
if (req.currentUser?.id) {
|
||||
const connections = await Connection.query()
|
||||
|
@@ -9,7 +9,7 @@ type Params = {
|
||||
}
|
||||
|
||||
const getConnectedAppsResolver = async (params: Params, req: RequestWithCurrentUser) => {
|
||||
let apps = await App.findAll(params.name)
|
||||
let apps = App.findAll(params.name)
|
||||
|
||||
const connections = await Connection.query()
|
||||
.select('connections.key')
|
||||
|
Reference in New Issue
Block a user