Explorar el Código

fix visits migration

Pouria Ezzati hace 1 año
padre
commit
69473ee025
Se han modificado 1 ficheros con 1 adiciones y 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();