Closed Dave0921 closed 6 years ago
Looks great! I think you can remove the comments above each method since the method name should be self explanatory.
Okay I've fixed up the issues I believe. I also got the following linting error:
../app/api/community.service.ts[38, 67]: Shadowed name: 'community'
I'm getting this error at the line where I do a post request in the createCommunity()
function:
createCommunity(community: Community): Promise<any> {
return this.isCommunityNameAvailable(community.name).then((exists: boolean) => {
if (!exists) {
this.api.post(Version.v1, 'communities', community).then((community: Community) => {
...
Does this need to be resolved?
I can't seem to do a merge due to branch conflicts (since I had to import the community services to api.module.ts). How do I resolve this?
You can resolve the conflicts directly on github with the new button at the bottom here.
I was wondering if I implemented the sorting URL correctly for
getCommunities()
andgetCommunityTemplates(name: string)
.