Explorar o código

fix visits migration

Pouria Ezzati hai 1 ano
pai
achega
69473ee025
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      server/migrations/20241223103044_visits_user_id.js

+ 1 - 1
server/migrations/20241223103044_visits_user_id.js

@@ -19,7 +19,7 @@ async function up(knex) {
       .withKeyName("visits_user_id_foreign");
   });
 
-  const [{ count }] = await knex("visits").count("'*' as count");
+  const [{ count }] = await knex("visits").count("* as count");
   
   if (count < 1_000_000) {
     const last_visit = await knex("visits").orderBy("id", "desc").first();