mirror of
https://github.com/movie-web/backend.git
synced 2025-09-13 18:13:26 +00:00
Fix MikroORM migrations and create initial migration
Co-authored-by: mrjvs <mistrjvs@gmail.com>
This commit is contained in:
@@ -16,6 +16,7 @@ export async function updateMetrics(em: EntityManager, metrics: Metrics) {
|
||||
>();
|
||||
|
||||
metrics.user.reset();
|
||||
|
||||
users.forEach((v) => {
|
||||
metrics?.user.inc({ namespace: v.namespace }, Number(v.count));
|
||||
});
|
||||
|
Reference in New Issue
Block a user