mirror of
https://github.com/leanote/leanote-android.git
synced 2025-10-17 16:07:48 +00:00
fix update note but actually add note
This commit is contained in:
@@ -220,7 +220,7 @@ public class NoteService {
|
|||||||
} else {
|
} else {
|
||||||
requestBodyMap.put("NoteId", createPartFromString(modifiedNote.getNoteId()));
|
requestBodyMap.put("NoteId", createPartFromString(modifiedNote.getNoteId()));
|
||||||
requestBodyMap.put("Usn", createPartFromString(String.valueOf(modifiedNote.getUsn())));
|
requestBodyMap.put("Usn", createPartFromString(String.valueOf(modifiedNote.getUsn())));
|
||||||
call = ApiProvider.getInstance().getNoteApi().add(requestBodyMap, fileBodies);
|
call = ApiProvider.getInstance().getNoteApi().update(requestBodyMap, fileBodies);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Note note = RetrofitUtils.excuteWithException(call);
|
Note note = RetrofitUtils.excuteWithException(call);
|
||||||
|
Reference in New Issue
Block a user