Closed jvolker closed 4 years ago
Calling
OF.frames.fetch({ "ownerId" : userId })
where userId is my own user ID lists all of my frames plus the following two frames at the beginning of the list. These frames are owned by someone else and should therefore not be listed. I expected only my own frames to be listed.
userId
How come is that?
{ "name": "Portrait Frame (IATech)", "connected": false, "settings": { "openframe-slideshow": { "duration": 1, "enabled": true } }, "is_public": true, "extensions": { "openframe-image": "*", "openframe-glslviewer": "*", "openframe-website": "*", "openframe-video": "*", "openframe-slideshow": "*" }, "formats": {}, "id": "58e15977a9c1b11803b242b5", "ownerId": "58e15930a9c1b11803b242b4", "created": "2017-04-02T20:05:11.174Z", "modified": "2017-04-02T20:05:11.174Z", "currentArtworkId": "59f59176b2462d7382b8f6b3", "current_artwork": { "title": "goooooooo", "is_public": true, "url": "https://thebookofshaders.com/log/171029083642.frag", "thumb_url": "https://thebookofshaders.com/log/171029083642.png", "author_name": "domspad", "required_extensions": {}, "format": "openframe-glslviewer", "id": "59f59176b2462d7382b8f6b3", "ownerId": "5951a414b2462d7382b8f42b", "created": "2017-10-29T08:29:42.919Z", "modified": "2017-10-29T08:29:42.919Z", "is_author": true }, "managers": [ { "website": "http://andydayton.com", "twitter": "andyinabox", "username": "amdayton", "id": "56e60284a6b560d60618466b" } ], "owner": { "full_name": "IATech 90th Exhibition", "username": "iatech", "id": "58e15930a9c1b11803b242b4", "passwordConfirm": "iat3ch" } }, { "name": "Landscape Frame (IATech)", "connected": false, "settings": { "openframe-slideshow": { "duration": 1, "enabled": true } }, "is_public": true, "extensions": { "openframe-image": "*", "openframe-glslviewer": "*", "openframe-website": "*", "openframe-video": "*", "openframe-slideshow": "*" }, "formats": {}, "id": "58e5466ab2462d7382b8f152", "ownerId": "58e3fede56af195629ea46d8", "created": "2017-04-05T19:32:58.789Z", "modified": "2017-04-05T19:32:58.789Z", "currentArtworkId": "58e903d0b2462d7382b8f163", "current_artwork": { "title": "To Scale", "description": "Digital photo, 2014", "is_public": false, "url": "https://s3.us-east-2.amazonaws.com/dance-iatech-90th/dayton/IMG_3486.jpg", "thumb_url": "https://s3.us-east-2.amazonaws.com/dance-iatech-90th/dayton/IMG_3486.jpg", "author_name": "Andy Dayton", "required_extensions": {}, "format": "openframe-image", "id": "58e903d0b2462d7382b8f163", "ownerId": "58e3fede56af195629ea46d8", "created": "2017-04-08T15:37:52.266Z", "modified": "2017-04-08T15:37:52.266Z", "is_author": false }, "managers": [ { "website": "http://andydayton.com", "twitter": "andyinabox", "username": "amdayton", "id": "56e60284a6b560d60618466b" } ], "owner": { "website": "http://bodiesin.space", "full_name": "IATech 2", "username": "iatech2", "id": "58e3fede56af195629ea46d8", "passwordConfirm": "iat3ch" } }
I figured it out myself. I stumbled over this one again.
It has to be:
OF.frames.fetch({ where: { ownerId : userId } })
Calling
where
userId
is my own user ID lists all of my frames plus the following two frames at the beginning of the list. These frames are owned by someone else and should therefore not be listed. I expected only my own frames to be listed.How come is that?