Skip to content

Commit

Permalink
fix logic error in migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
SciLor committed Nov 9, 2024
1 parent 21ad3d1 commit fcb9550
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handler_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -2921,7 +2921,7 @@ error_t handleApiMigrateContent2Lib(HttpConnection *connection, const char_t *ur

if (tonieInfo->valid)
{
if (tonieInfo->json._source_type == CT_SOURCE_NONE)
if (tonieInfo->json._source_type != CT_SOURCE_NONE)
{
error = ERROR_FILE_NOT_FOUND;
TRACE_WARNING("Source already set, cannot migrate %s\n", ruid);
Expand Down

0 comments on commit fcb9550

Please sign in to comment.