Methods
addOrganization(formBody, callback)
Adds a new organization to core database (sqlite)
Parameters:
Name | Type | Description |
---|---|---|
formBody |
object | req.form holding the form fields |
callback |
function | success, true or false |
- Source:
getListOfOrganizations(req, res, callback)
returns rows of all organizations in core database
Parameters:
Name | Type | Description |
---|---|---|
req |
* | |
res |
* | |
callback |
* |
- Source:
getOrganizationWithId(orgId, callback)
Returns database row for organization with given orgId
Parameters:
Name | Type | Description |
---|---|---|
orgId |
integer | |
callback |
rows |
- Source:
removeOrganizationWithId(orgId, callback)
Removes an organization from database
Parameters:
Name | Type | Description |
---|---|---|
orgId |
integer | |
callback |
function | TBD: check if there are other entities referenzing to this organization prio removing |
- Source:
setOrganizationAvatar(image, orgId, callback)
Updates the name of the avatar image for an organization in core database
Parameters:
Name | Type | Description |
---|---|---|
image |
string | |
orgId |
integer | |
callback |
function |
- Source: