-
Notifications
You must be signed in to change notification settings - Fork 0
/
MAU.ts
22 lines (19 loc) · 777 Bytes
/
MAU.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { GraphQLID, GraphQLNonNull, GraphQLSchema } from 'graphql';
import MarketingActivity from '../../MarketingActivity';
import MarketingActivityInputType, { IMarketingActivityInputType } from '../types/MarketingActivityInputType';
import MarketingActivityType from '../types/MarketingActivityType';
const updateMarketingActivity = {
type: MarketingActivityType,
args: {
id: { type: new GraphQLNonNull(GraphQLID) },
input: { type: new GraphQLNonNull(MarketingActivityInputType) },
},
resolve: async (
_: GraphQLSchema,
{ id, input }: { id: string; input: IMarketingActivityInputType },
{ viewer }: { viewer: Common.Viewer },
) => {
return MarketingActivity.updateById(viewer, id, input);
},
};
export default updateMarketingActivity;