upd: allow updating of fields
This commit is contained in:
		
							parent
							
								
									c88fbe843a
								
							
						
					
					
						commit
						81def9457b
					
				
					 3 changed files with 32 additions and 17 deletions
				
			
		| 
						 | 
				
			
			@ -248,6 +248,11 @@ export default class Misskey implements MegalodonInterface {
 | 
			
		|||
          bannerId: options.header
 | 
			
		||||
        })
 | 
			
		||||
      }
 | 
			
		||||
      if (options.fields_attributes) {
 | 
			
		||||
        params = Object.assign(params, {
 | 
			
		||||
          fields: options.fields_attributes
 | 
			
		||||
        })
 | 
			
		||||
      }
 | 
			
		||||
      if (options.locked !== undefined) {
 | 
			
		||||
        params = Object.assign(params, {
 | 
			
		||||
          isLocked: options.locked.toString() === 'true' ? true : false
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue