mirror of
https://github.com/paricafe/misskey.git
synced 2025-04-21 00:26:12 -05:00
add todo
This commit is contained in:
parent
aa1cc2f817
commit
35a4544477
1 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ const storageProvider: StorageProvider = {
|
|||
value: target[1],
|
||||
};
|
||||
} catch (err: any) {
|
||||
if (err.code === 'NO_SUCH_KEY') {
|
||||
if (err.code === 'NO_SUCH_KEY') { // TODO: いちいちエラーキャッチするのは面倒なのでキーが無くてもエラーにならない maybe-get のようなエンドポイントをバックエンドに実装する
|
||||
return null;
|
||||
} else {
|
||||
throw err;
|
||||
|
@ -66,7 +66,7 @@ const storageProvider: StorageProvider = {
|
|||
key: syncGroup + ':' + ctx.key,
|
||||
}) as [any, any][];
|
||||
} catch (err: any) {
|
||||
if (err.code === 'NO_SUCH_KEY') {
|
||||
if (err.code === 'NO_SUCH_KEY') { // TODO: いちいちエラーキャッチするのは面倒なのでキーが無くてもエラーにならない maybe-get のようなエンドポイントをバックエンドに実装する
|
||||
cloudData = [];
|
||||
} else {
|
||||
throw err;
|
||||
|
|
Loading…
Add table
Reference in a new issue