Skip to content

Commit 321a3ac

Browse files
henrybarretogustavosbarreto
authored andcommitted
fix: use time's equal method to compare date on migration 73
1 parent a50824b commit 321a3ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/store/mongo/migrations/migration_73.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ var migration73 = migrate.Migration{
4646
}
4747

4848
for _, m := range namespace.Members {
49-
if m.AddedAt == (time.Time{}) {
49+
if m.AddedAt.Equal((time.Time{})) {
5050
updateModel := mongo.
5151
NewUpdateOneModel().
5252
SetFilter(bson.M{"tenant_id": namespace.TenantID, "members": bson.M{"$elemMatch": bson.M{"id": m.ID}}}).

0 commit comments

Comments
 (0)