feat: check app existence in createConnection
This commit is contained in:
@@ -12,6 +12,8 @@ const createConnection = async (
|
|||||||
params: Params,
|
params: Params,
|
||||||
context: Context
|
context: Context
|
||||||
) => {
|
) => {
|
||||||
|
App.findOneByKey(params.input.key);
|
||||||
|
|
||||||
return await context.currentUser
|
return await context.currentUser
|
||||||
.$relatedQuery('connections')
|
.$relatedQuery('connections')
|
||||||
.insert({
|
.insert({
|
||||||
|
Reference in New Issue
Block a user