memset(&del, 0, sizeof(del));
strcpy(cr.Name, client->hdr.name);
- if (!db_create_client_record(ua->db, &cr)) {
+ if (!db_create_client_record(ua->jcr, ua->db, &cr)) {
return 0;
}
memset(&del, 0, sizeof(del));
strcpy(cr.Name, client->hdr.name);
- if (!db_create_client_record(ua->db, &cr)) {
+ if (!db_create_client_record(ua->jcr, ua->db, &cr)) {
return 0;
}
strcmp(mr->VolStatus, "Full") == 0 ||
strcmp(mr->VolStatus, "Used") == 0) {
strcpy(mr->VolStatus, "Purged");
- if (!db_update_media_record(ua->db, mr)) {
+ if (!db_update_media_record(ua->jcr, ua->db, mr)) {
if (ua->verbose) {
bsendmsg(ua, "%s", db_strerror(ua->db));
}