mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 17:08:45 +00:00
Fix for query with empty ID
This commit is contained in:
parent
5eedfdd3fe
commit
01552bb13b
1 changed files with 1 additions and 0 deletions
|
|
@ -156,6 +156,7 @@ class MySQL extends Adapter
|
|||
$data = array_merge(['$id' => null, '$permissions' => []], $data); // Merge data with default params
|
||||
$signature = md5(json_encode($data, true));
|
||||
$revision = uniqid('', true);
|
||||
$data['$id'] = (empty($data['$id'])) ? null : $data['$id'];
|
||||
|
||||
/*
|
||||
* When updating node, check if there are any changes to update
|
||||
|
|
|
|||
Loading…
Reference in a new issue