We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2b70c7a + 9dbe026 commit ae6ae46Copy full SHA for ae6ae46
nodes/project-link.js
@@ -16,7 +16,10 @@ module.exports = function (RED) {
16
const API_VERSION = 'v1'
17
const TOPIC_HEADER = 'ff'
18
const TOPIC_VERSION = 'v1'
19
- const OWNER_TYPE = RED.settings.flowforge.applicationID ? 'application' : 'instance'
+ // It is not unreasonable to expect `projectID` and `applicationID` are set for an instance
20
+ // owned device, however an application owned device should not have a projectID.
21
+ // therefore, assume project owned if `projectID` is set
22
+ const OWNER_TYPE = RED.settings.flowforge.projectID ? 'instance' : 'application'
23
24
// #region JSDoc
25
0 commit comments