@@ -19,7 +19,7 @@ interface ProjectMain {
19
19
github ?: string ;
20
20
nostr ?: string ;
21
21
} ;
22
- address_line_1 : string ;
22
+ address_city_country : string ;
23
23
address_line_2 : string ;
24
24
address_line_3 : string ;
25
25
original_language : string ;
@@ -70,7 +70,7 @@ export const createProcessChangedProject = (
70
70
VALUES (
71
71
${ parsedProject . id } ,${ resourceId } , ${ parsedProject . name } , ${ parsedProject . category . toLowerCase ( ) } , ${ parsedProject . language } ,
72
72
${ parsedProject . links . website } , ${ parsedProject . links . twitter } ,
73
- ${ parsedProject . links . github } , ${ parsedProject . links . nostr } , ${ parsedProject . address_line_1 } , ${ parsedProject . address_line_2 } , ${ parsedProject . address_line_3 } , ${ parsedProject . original_language }
73
+ ${ parsedProject . links . github } , ${ parsedProject . links . nostr } , ${ parsedProject . address_city_country } , ${ parsedProject . address_line_2 } , ${ parsedProject . address_line_3 } , ${ parsedProject . original_language }
74
74
)
75
75
ON CONFLICT (id) DO UPDATE SET
76
76
resource_id = EXCLUDED.resource_id,
@@ -97,8 +97,8 @@ export const createProcessChangedProject = (
97
97
RETURNING *;
98
98
` . then ( firstRow ) ;
99
99
100
- if ( p . contributors_id ) {
101
- for ( const [ index , contrib ] of p . contributors_id . entries ( ) ) {
100
+ if ( p . contributor_names ) {
101
+ for ( const [ index , contrib ] of p . contributor_names . entries ( ) ) {
102
102
await transaction `INSERT INTO content.contributors (id) VALUES (${ contrib } ) ON CONFLICT DO NOTHING` ;
103
103
await transaction `
104
104
INSERT INTO content.proofreading_contributor(proofreading_id, contributor_id, "order")
0 commit comments