import { subscription } from "../invokers/notification";
import { getUser } from "../invokers/user";

export default {
  subscription: async (root, { input: { accessToken } }) => {
    const { username } = await getUser.execute({ accessToken });
    return subscription.execute({
      user: {
        username,
      },
    });
  },
};
