set timestamp() on field

This commit is contained in:
Travis 2021-02-19 15:04:47 -06:00
parent ebb340d83e
commit 3f0745647b
No known key found for this signature in database
GPG key ID: 37080CC2042BA34E

View file

@ -584,7 +584,7 @@ func (i *Index) CreateField(name string, opts ...FieldOption) (*Field, error) {
cfm := &CreateFieldMessage{
Index: i.name,
Field: name,
CreatedAt: 0,
CreatedAt: timestamp(),
Meta: fo,
}
@ -683,7 +683,7 @@ func (i *Index) CreateFieldIfNotExistsWithOptions(name string, opt *FieldOptions
cfm := &CreateFieldMessage{
Index: i.name,
Field: name,
CreatedAt: 0,
CreatedAt: timestamp(),
Meta: opt,
}