Skip to content

Commit ed14859

Browse files
committed
Revert "feat(logs): add audit logging functionality for companies and speakers"
This reverts commit 5327f6b.
1 parent 5c2174d commit ed14859

File tree

17 files changed

+185
-1187
lines changed

17 files changed

+185
-1187
lines changed

backend/src/models/log.go

Lines changed: 0 additions & 33 deletions
This file was deleted.

backend/src/mongodb/init.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ var (
4848
CompanyReps *CompanyRepsType
4949
//Notifications is an instance of a mongodb collection
5050
Notifications *NotificationsType
51-
//Logs is an instance of a mongodb collection
52-
Logs *LogsType
5351
//Templates is an instance of a mongodb collection
5452
Templates *TemplateType
5553
)
@@ -171,10 +169,6 @@ func InitializeDatabase() {
171169
Collection: db.Collection("notifications"),
172170
}
173171

174-
Logs = &LogsType{
175-
Collection: db.Collection("logs"),
176-
}
177-
178172
Templates = &TemplateType{
179173
Collection: db.Collection("templates"),
180174
}
@@ -187,13 +181,6 @@ func InitializeDatabase() {
187181
},
188182
)
189183

190-
_, _ = Logs.Collection.Indexes().CreateOne(
191-
context.Background(),
192-
mongo.IndexModel{
193-
Keys: bson.D{{Key: "date", Value: -1}},
194-
},
195-
)
196-
197184
log.Println("Connected to the database successfully")
198185

199186
go CleanupCache()

backend/src/mongodb/log.go

Lines changed: 0 additions & 128 deletions
This file was deleted.

0 commit comments

Comments
 (0)