Merge pull request #25351 from overleaf/revert-24919-jel-create-group-audit-log
Revert "[web] Add group audit log" GitOrigin-RevId: cf192bbe3ebdb693f18bab9c1c5d08da18ed34c0
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
const mongoose = require('../infrastructure/Mongoose')
|
||||
const { Schema } = mongoose
|
||||
|
||||
const GroupAuditLogEntrySchema = new Schema(
|
||||
{
|
||||
groupId: { type: Schema.Types.ObjectId, index: true },
|
||||
info: { type: Object },
|
||||
initiatorId: { type: Schema.Types.ObjectId },
|
||||
ipAddress: { type: String },
|
||||
operation: { type: String },
|
||||
timestamp: { type: Date, default: Date.now },
|
||||
},
|
||||
{
|
||||
collection: 'groupAuditLogEntries',
|
||||
minimize: false,
|
||||
}
|
||||
)
|
||||
|
||||
exports.GroupAuditLogEntry = mongoose.model(
|
||||
'GroupAuditLogEntry',
|
||||
GroupAuditLogEntrySchema
|
||||
)
|
||||
exports.GroupAuditLogEntrySchema = GroupAuditLogEntrySchema
|
||||
Reference in New Issue
Block a user