add: tag post endpoint

This commit is contained in:
Tobias Reisinger 2020-08-11 23:33:04 +02:00
parent 7371c9a84e
commit 505faa6df2
4 changed files with 60 additions and 2 deletions
src/models

View file

@ -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*