@jens Okay,this is all of one document in the sync_gateway bucket:
{
"_sync": {
"rev": "4-55ad8fbd8817ee6eba91a71cb17b0b28",
"sequence": 5523,
"recent_sequences": [
945,
962,
1912,
2859,
4268,
4568,
5523
],
"history": {
"revs": [
"2-27994c7e39b95e6943869590c486ab51",
"4-55ad8fbd8817ee6eba91a71cb17b0b28",
"3-e0b9abbfb754361f659a9e730b42ceec",
"1-9abd012beb4d6415a619a86bb12e7b9a"
],
"parents": [
3,
2,
0,
-1
],
"channels": [
null,
null,
null,
null
]
},
"upstream_cas": 1461144244269416400,
"upstream_rev": "4-55ad8fbd8817ee6eba91a71cb17b0b28",
"time_saved": "2016-04-20T12:24:59.6725557+03:00"
},
"allowPoll": 0,
"allowSubscribe": 0,
"allowUpload": 0,
"allowVote": 0,
"avarageColor": "http://icon.donanimhaber.com/mobile-forum-icons/1.png",
"blogHit": 0,
"categoryId": 0,
"childForums": null,
"customFlood": 0,
"deleteRight": 0,
"description": "Donanım / Hardware",
"downRestriction": 0,
"enableRating": 0,
"forumExtra": null,
"forumsAll": [],
"forumsTree": [],
"groupPermissionOn": 0,
"guestRight": 0,
"guestUpload": null,
"hasChild": true,
"hasProperty": false,
"iconPath": "1.png",
"id": 1,
"isFavorite": false,
"isForum": false,
"isModerated": 0,
"isPrivate": false,
"lastModified": null,
"lastModifiedTime": "0001-01-01T00:00:00",
"lastTopic": null,
"level": 1,
"levelOrder": null,
"linkAddress": null,
"linkTarget": 0,
"mPostCount": 0,
"memUpload": null,
"memberRight": 0,
"messageCount": 0,
"messageCountThisWeek": 8476,
"modOnUpload": 0,
"modUpload": null,
"moderator": [],
"moderatorName": null,
"needRevision": 0,
"noImageInPosts": 0,
"order": 0,
"parent": 0,
"parentName": null,
"pgdCode": 0,
"privateUser": null,
"privateUserRight": 0,
"redirects": 0,
"repMode": 4,
"sMode": 0,
"sort": 0,
"sortOrder": 0,
"themeId": 0,
"timeFilter": null,
"title": "Donanım / Hardware",
"topicCount": 0,
"topicCountThisWeek": 995,
"topics": null,
"ttPaging": 0,
"type": "mainForums",
"upRestriction": 0,
"uploadNumber": 0
}
I changed my config to that :
{ "interface":":4988",
"adminInterface":":4989",
"log":["CRUD+", "REST+","Access", "Changes+", "Attach+", "Shadow"],
"databases":{
"sync_gateway":{
"server":"http://host:8091",
"bucket":"sync_gateway",
"sync":`
function(doc, oldDoc) {
if(doc.type == "mainForums")
{
channel("main");
}
else if(doc.type == "popularForums")
{
channel("popular");
}
else if(doc.type == "newestForums")
{
channel("newest");
}
access(android, "newest");
access(ios, "popular");
}`,
"users": {
"GUEST": {
"disabled": true
}
},
"shadow": {
"server": "http://host:8091",
"bucket": "default"
}
}
}
}
Still there isn’t any channel created, properties are null. Is something missing here? I couldn’t figure it out.