chore: Remove displayName field from credentials
This commit is contained in:
@@ -6,12 +6,10 @@ import RequestWithCurrentUser from '../../types/express/request-with-current-use
|
||||
|
||||
type Params = {
|
||||
key: string,
|
||||
displayName: string,
|
||||
data: object
|
||||
}
|
||||
const createCredentialResolver = async (params: Params, req: RequestWithCurrentUser) => {
|
||||
const credential = await Credential.query().insert({
|
||||
displayName: params.displayName,
|
||||
key: params.key,
|
||||
data: params.data,
|
||||
userId: req.currentUser.id
|
||||
@@ -24,7 +22,6 @@ const createCredential = {
|
||||
type: credentialType,
|
||||
args: {
|
||||
key: { type: GraphQLNonNull(GraphQLString) },
|
||||
displayName: { type: GraphQLNonNull(GraphQLString) },
|
||||
data: { type: GraphQLNonNull(twitterCredentialInputType) }
|
||||
},
|
||||
resolve: (_: any, params: Params, req: RequestWithCurrentUser) => createCredentialResolver(params, req)
|
||||
|
Reference in New Issue
Block a user