Unarchives a chat (and its children). Stale file references are handled automatically by FK cascades on chat_file_links: when dbpurge deletes a chat_files row, the corresponding chat_file_links rows are cascade-deleted by PostgreSQL.
(ctx context.Context, id uuid.UUID)
| 1169 | // dbpurge deletes a chat_files row, the corresponding |
| 1170 | // chat_file_links rows are cascade-deleted by PostgreSQL. |
| 1171 | UnarchiveChatByID(ctx context.Context, id uuid.UUID) ([]Chat, error) |
| 1172 | // This will always work regardless of the current state of the template version. |
| 1173 | UnarchiveTemplateVersion(ctx context.Context, arg UnarchiveTemplateVersionParams) error |
| 1174 | UnfavoriteWorkspace(ctx context.Context, id uuid.UUID) error |
no outgoing calls