mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	js: Remove extra consecutive spaces.
Prettier would do this anyway, but it’s separated out for a more reviewable diff. Generated by ESLint. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							883e2fd325
						
					
				
				
					commit
					8046b6477a
				
			@@ -204,7 +204,7 @@ exports.restore_draft = function (draft_id) {
 | 
			
		||||
const DRAFT_LIFETIME = 30;
 | 
			
		||||
 | 
			
		||||
exports.remove_old_drafts = function () {
 | 
			
		||||
    const old_date  = new Date().setDate(new Date().getDate() - DRAFT_LIFETIME);
 | 
			
		||||
    const old_date = new Date().setDate(new Date().getDate() - DRAFT_LIFETIME);
 | 
			
		||||
    const drafts = draft_model.get();
 | 
			
		||||
    for (const [id, draft] of Object.entries(drafts)) {
 | 
			
		||||
        if (draft.updatedAt < old_date) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user