mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 15:34:13 +00:00 
			
		
		
		
	don't suppress errors when Update(Question) or Update(Note) fails
This commit is contained in:
		
							parent
							
								
									c5f572dcfd
								
							
						
					
					
						commit
						4ec6bffca7
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -821,7 +821,7 @@ export class ApInboxService {
 | 
				
			||||||
				return await this.create(actor, activity, resolver);
 | 
									return await this.create(actor, activity, resolver);
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			await this.apQuestionService.updateQuestion(object, actor, resolver).catch(err => console.error(err));
 | 
								await this.apQuestionService.updateQuestion(object, actor, resolver);
 | 
				
			||||||
			return 'ok: Question updated';
 | 
								return 'ok: Question updated';
 | 
				
			||||||
		} else if (isPost(object)) {
 | 
							} else if (isPost(object)) {
 | 
				
			||||||
			// If we get an Update(Note) for a note that doesn't exist, then create it instead
 | 
								// If we get an Update(Note) for a note that doesn't exist, then create it instead
 | 
				
			||||||
| 
						 | 
					@ -829,7 +829,7 @@ export class ApInboxService {
 | 
				
			||||||
				return await this.create(actor, activity, resolver);
 | 
									return await this.create(actor, activity, resolver);
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			await this.apNoteService.updateNote(object, actor, resolver).catch(err => console.error(err));
 | 
								await this.apNoteService.updateNote(object, actor, resolver);
 | 
				
			||||||
			return 'ok: Note updated';
 | 
								return 'ok: Note updated';
 | 
				
			||||||
		} else {
 | 
							} else {
 | 
				
			||||||
			return `skip: Unsupported type for Update: ${getApType(object)} (object ${getNullableApId(object)})`;
 | 
								return `skip: Unsupported type for Update: ${getApType(object)} (object ${getNullableApId(object)})`;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue