[ContentManagement] Use natural number for version (#153239)

This commit is contained in:
Sébastien Loix 2023-03-16 20:28:15 +00:00 committed by GitHub
parent 15b1dd2e45
commit 92a6a1a7ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
36 changed files with 219 additions and 247 deletions

View file

@ -22,7 +22,7 @@ export default {
const todosClient = new TodosClient();
const contentTypeRegistry = new ContentTypeRegistry();
contentTypeRegistry.register({ id: 'todos', version: { latest: 'v1' } });
contentTypeRegistry.register({ id: 'todos', version: { latest: 1 } });
const contentClient = new ContentClient((contentType: string) => {
switch (contentType) {

View file

@ -34,7 +34,7 @@ export class ContentManagementExamplesPlugin
contentManagement.registry.register({
id: 'todos',
version: {
latest: 'v1',
latest: 1,
},
});

View file

@ -34,7 +34,7 @@ export const registerTodoContentType = ({
id: TODO_CONTENT_ID,
storage: new TodosStorage(),
version: {
latest: 'v1',
latest: 1,
},
});
};