MongoDB TTL does not work on atlas but works fine on localhost

Ok I didn’t need the mongocli tool, and I was able to connect through mongodb shell. My collection name is models. This is what I got.

db.models.getIndexes()
[
	{
		"v" : 2,
		"key" : {
			"_id" : 1
		},
		"name" : "_id_",
		"ns" : "test.models"
	},
	{
		"v" : 2,
		"unique" : true,
		"key" : {
			"name" : 1
		},
		"name" : "name_1",
		"ns" : "test.models",
		"background" : true
	},
	{
		"v" : 2,
		"key" : {
			"expiresAt" : 1
		},
		"name" : "expiresAt_1",
		"ns" : "test.models"
	}
]