Skip to content

Commit

Permalink
temporal migration
Browse files Browse the repository at this point in the history
  • Loading branch information
mfacar committed Sep 5, 2024
1 parent d206790 commit b489d32
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions app/api/migrations/migrations/169-latest-activitylog/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { Db } from 'mongodb';

// eslint-disable-next-line import/no-default-export
export default {
delta: 169,

name: 'delete entries',

description: 'temporal deletion',

reindex: true,

async up(db: Db) {
await db.collection('activitylogs').deleteOne({
username: 'Álvaro',
});
},
};

0 comments on commit b489d32

Please sign in to comment.