Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- router.post("/getgroups",(req,res)=>{
- admin.find({"adminkey":req.body.idd},(err,finddata)=>{
- if( err ){
- res.json({
- status:404,
- message:"getgroups failed",
- data:err
- });
- res.end();
- }
- else if( ( finddata == "" ) || ( finddata == null ) ){
- res.json({
- status:404,
- message:"Getgroups NULL",
- data:finddata
- });
- res.end();
- }
- else if( ( finddata !="" ) || ( finddata != null ) ){
- res.json({
- status:200,
- message:"Getgroups NULL",
- data:finddata
- });
- res.end();
- }
- });
- });
- this.socket.postfunction('group/getgroups',adid).subscribe( res => {
- console.log(res)
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement