mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	絵文字を作成した/更新した時にupdateAtを更新するように
This commit is contained in:
		
							parent
							
								
									7c3873887d
								
							
						
					
					
						commit
						b7a15bf6ca
					
				
					 2 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -28,6 +28,7 @@ export const meta = {
 | 
			
		|||
 | 
			
		||||
export default define(meta, (ps) => new Promise(async (res, rej) => {
 | 
			
		||||
	await Emoji.insert({
 | 
			
		||||
		updatedAt: new Date(),
 | 
			
		||||
		name: ps.name,
 | 
			
		||||
		host: null,
 | 
			
		||||
		aliases: ps.aliases,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -39,6 +39,7 @@ export default define(meta, (ps) => new Promise(async (res, rej) => {
 | 
			
		|||
 | 
			
		||||
	await Emoji.update({ _id: emoji._id }, {
 | 
			
		||||
		$set: {
 | 
			
		||||
			updatedAt: new Date(),
 | 
			
		||||
			name: ps.name,
 | 
			
		||||
			aliases: ps.aliases,
 | 
			
		||||
			url: ps.url
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue