feat: check app existence in createConnection

This commit is contained in:
Ali BARIN
2022-07-27 21:11:31 +02:00
parent d513e03138
commit 98d7969a1e

View File

@@ -12,6 +12,8 @@ const createConnection = async (
params: Params,
context: Context
) => {
App.findOneByKey(params.input.key);
return await context.currentUser
.$relatedQuery('connections')
.insert({