git.schokokeks.org
Repositories
Help
Report an Issue
fs-words.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
faf7e12
Branches
Tags
develop-client_server
master
typescript
fs-words.git
server
source
api
actions
concept_add.ts
[mov] server
Christian Fraß
commited
faf7e12
at 2021-03-08 23:05:42
concept_add.ts
Blame
History
Raw
api.add_action< { type_id : int; description ?: null|string; tag_ids ?: Array<int>; expression_ids ?: Array<int>; }, int > ( { "name": "concept_add", "execution": async function (input) { const concept_entity : entities.concept = { "type_id": input.type_id, "description": helpers.object.fetch<null|string>(input, "description", null), "tag_ids": input.tag_ids, "expression_ids": input.expression_ids, }; const concept_id : int = await services.concept.add(concept_entity); return Promise.resolve<int>(concept_id); } } );