chore: update resource name migrator
This commit is contained in:
parent
8c6292925e
commit
ef73299340
1 changed files with 3 additions and 1 deletions
|
|
@ -58,7 +58,9 @@ func (s *Store) MigrateResourceInternalPath(ctx context.Context) error {
|
||||||
|
|
||||||
// MigrateResourceName migrates resource name from other format to short UUID.
|
// MigrateResourceName migrates resource name from other format to short UUID.
|
||||||
func (s *Store) MigrateResourceName(ctx context.Context) error {
|
func (s *Store) MigrateResourceName(ctx context.Context) error {
|
||||||
memos, err := s.ListMemos(ctx, &FindMemo{})
|
memos, err := s.ListMemos(ctx, &FindMemo{
|
||||||
|
ExcludeContent: true,
|
||||||
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Wrap(err, "failed to list memos")
|
return errors.Wrap(err, "failed to list memos")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue