1
0
Fork 0
mirror of https://github.com/paricafe/misskey.git synced 2025-04-21 00:26:12 -05:00
This commit is contained in:
syuilo 2025-03-12 18:54:36 +09:00
parent aa1cc2f817
commit 35a4544477

View file

@ -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;