1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-11-24 15:16:21 +09:00
This commit is contained in:
syuilo 2019-04-24 20:41:32 +09:00
parent f063dee12a
commit 7b29e7cf7e
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -38,10 +38,10 @@ export default Vue.extend({
const data = new FormData();
data.append('md5', getMD5(fileData));
this.$root.api('drive/files/check_existence', {
this.$root.api('drive/files/find-by-hash', {
md5: getMD5(fileData)
}).then(resp => {
resolve(resp.file);
resolve(resp.length > 0 ? resp[0] : null);
});
});
},