@powerhousedao/network-admin 0.0.47 → 0.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -70,8 +70,8 @@ export class WorkstreamsProcessor extends RelationalDbProcessor {
|
|
|
70
70
|
await this.relationalDb
|
|
71
71
|
.insertInto("workstreams")
|
|
72
72
|
.values({
|
|
73
|
-
network_phid: strand.state.client.id,
|
|
74
|
-
network_slug: strand.state.client
|
|
73
|
+
network_phid: strand.state.client?.id ? strand.state.client.id : null,
|
|
74
|
+
network_slug: strand.state.client?.name ? strand.state.client.name.toLowerCase().split(' ').join("-") : null,
|
|
75
75
|
workstream_phid: strand.documentId,
|
|
76
76
|
workstream_slug: strand.state.title ? strand.state.title.toLowerCase().split(' ').join("-") : "",
|
|
77
77
|
workstream_title: strand.state.title,
|
|
@@ -74,16 +74,16 @@ export const getResolvers = (subgraph) => {
|
|
|
74
74
|
const networkDoc = await reactor.getDocument(networkId);
|
|
75
75
|
const state = networkDoc.state.global;
|
|
76
76
|
return {
|
|
77
|
-
name: state.name
|
|
77
|
+
name: state.name ?? null,
|
|
78
78
|
slug: state.name ? state.name.toLowerCase().trim().split(/\s+/).join("-") : null,
|
|
79
|
-
icon: state.icon
|
|
80
|
-
darkThemeIcon: state.darkThemeIcon
|
|
81
|
-
logo: state.logo
|
|
82
|
-
darkThemeLogo: state.darkThemeLogo
|
|
83
|
-
logoBig: state.logoBig
|
|
79
|
+
icon: state.icon ?? null,
|
|
80
|
+
darkThemeIcon: state.darkThemeIcon ?? null,
|
|
81
|
+
logo: state.logo ?? null,
|
|
82
|
+
darkThemeLogo: state.darkThemeLogo ?? null,
|
|
83
|
+
logoBig: state.logoBig ?? null,
|
|
84
84
|
website: state.website ?? null,
|
|
85
|
-
description: state.description
|
|
86
|
-
category: state.category
|
|
85
|
+
description: state.description ?? null,
|
|
86
|
+
category: Array.isArray(state.category) ? state.category : null,
|
|
87
87
|
x: state.x ?? null,
|
|
88
88
|
github: state.github ?? null,
|
|
89
89
|
discord: state.discord ?? null,
|
|
@@ -130,7 +130,7 @@ export const getResolvers = (subgraph) => {
|
|
|
130
130
|
slug: state.title ? state.title.toLowerCase().trim().split(/\s+/).join("-") : null,
|
|
131
131
|
status: state.status || row.workstream_status || null,
|
|
132
132
|
client,
|
|
133
|
-
network: networkInfo
|
|
133
|
+
network: networkInfo,
|
|
134
134
|
rfp: rfpDetails,
|
|
135
135
|
initialProposal: initialProposalBase
|
|
136
136
|
? {
|
|
@@ -159,7 +159,7 @@ export const getResolvers = (subgraph) => {
|
|
|
159
159
|
client: row.network_phid
|
|
160
160
|
? { id: row.network_phid, name: row.network_slug, icon: null }
|
|
161
161
|
: null,
|
|
162
|
-
network: networkInfo
|
|
162
|
+
network: networkInfo,
|
|
163
163
|
rfp: null,
|
|
164
164
|
initialProposal: null,
|
|
165
165
|
alternativeProposals: [],
|
|
@@ -113,16 +113,16 @@ export const schema = gql `
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
type Network {
|
|
116
|
-
name: String
|
|
116
|
+
name: String
|
|
117
117
|
slug: String
|
|
118
|
-
icon: String
|
|
119
|
-
darkThemeIcon: String
|
|
120
|
-
logo: String
|
|
121
|
-
darkThemeLogo: String
|
|
122
|
-
logoBig: String
|
|
118
|
+
icon: String
|
|
119
|
+
darkThemeIcon: String
|
|
120
|
+
logo: String
|
|
121
|
+
darkThemeLogo: String
|
|
122
|
+
logoBig: String
|
|
123
123
|
website: String
|
|
124
|
-
description: String
|
|
125
|
-
category: [NetworkCategory!]
|
|
124
|
+
description: String
|
|
125
|
+
category: [NetworkCategory!]
|
|
126
126
|
x: String
|
|
127
127
|
github: String
|
|
128
128
|
discord: String
|