add: tag post endpoint
This commit is contained in:
parent
7371c9a84e
commit
505faa6df2
4 changed files with 60 additions and 2 deletions
src/models
|
@ -28,12 +28,12 @@ tag_save(int id, const char *tag)
|
|||
if (rc != SQLITE_DONE)
|
||||
{
|
||||
LOGGER_ERR("error saving tag: %s\n", sqlite3_errmsg(global_database));
|
||||
return false;
|
||||
return 1;
|
||||
}
|
||||
|
||||
sqlite3_finalize(stmt);
|
||||
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
char*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue