Removed visits 404 resolution
This commit is contained in:
		@@ -276,15 +276,7 @@ fastify.after(() => {
 | 
			
		||||
            return 404;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        const exists = await knex.select('shortcode', 'target')
 | 
			
		||||
            .from('urls')
 | 
			
		||||
            .where('shortcode', '=', shortcode)
 | 
			
		||||
            .limit(1);
 | 
			
		||||
        if (exists.length == 0) {
 | 
			
		||||
            return 404;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        const visits = await knex.select('timestamp')
 | 
			
		||||
        const visits = await knex.select('timestamp', 'provider')
 | 
			
		||||
            .from('visits')
 | 
			
		||||
            .where('shortcode', '=', shortcode);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user