import { taskChannelList } from "../mongo/curd" ; import { _pushSuccess } from "../app" ; export const getNews = async ( socket , sid , data , channel , eventName ) => { const newsList = await taskChannelList ( 'broadcasts' , 10 ) ; await _pushSuccess ( channel , 'getNews' , newsList ) ; } ;