  async getPostData(){
    const postData = await this.postrepo.find();
    return postData;
  }
  async  postPostData(post){
    const newPost = await new this.postrepo(post);
    const save = await newPost.save();
    return save;

  }
  async  deletePosttData(id){