(data: OwnerInformation)
| 96 | } |
| 97 | |
| 98 | async setOwner(data: OwnerInformation) { |
| 99 | const { project_id } = await this.knex.select('project_id').from('directus_settings').first(); |
| 100 | |
| 101 | const primaryKey = await this.upsertSingleton({ |
| 102 | project_owner: data.project_owner, |
| 103 | product_updates: data.product_updates, |
| 104 | project_usage: data.project_usage, |
| 105 | org_name: data.org_name, |
| 106 | }); |
| 107 | |
| 108 | sendReport({ ...data, project_id, version }).catch(async () => { |
| 109 | await this.knex |
| 110 | .update('project_status', 'pending') |
| 111 | .from('directus_settings') |
| 112 | .catch(() => {}); |
| 113 | }); |
| 114 | |
| 115 | return primaryKey; |
| 116 | } |
| 117 | } |
no test coverage detected