Skip to content

Commit 47bbd3a

Browse files
committed
Re-export flagged save entry facade
(cherry picked from commit 7c24c0c)
1 parent 5836194 commit 47bbd3a

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

lib/storage/flagged-entry.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,4 @@
1-
import type { FlaggedAccountStorageV1 } from "../storage.js";
2-
3-
export async function saveFlaggedAccountsEntry(params: {
4-
storage: FlaggedAccountStorageV1;
5-
withStorageLock: <T>(fn: () => Promise<T>) => Promise<T>;
6-
saveUnlocked: (storage: FlaggedAccountStorageV1) => Promise<void>;
7-
}): Promise<void> {
8-
return params.withStorageLock(async () => {
9-
await params.saveUnlocked(params.storage);
10-
});
11-
}
1+
export { saveFlaggedAccountsEntry } from "./flagged-save-entry.js";
122

133
export async function clearFlaggedAccountsEntry(params: {
144
path: string;

0 commit comments

Comments
 (0)