add comment

This commit is contained in:
pilcrowOnPaper 2024-10-03 22:43:44 +09:00
parent 25cc397095
commit 2d91168164

View file

@ -14,6 +14,9 @@ const adapter: SyncAdapter<sqlite3.RunResult> = {
for (let i = 0; i < result.length; i++) {
for (let j = 0; j < result[i].length; j++) {
if (result[i][j] instanceof Buffer) {
// Explicitly convert to Uint8Array since SvelteKit's serialization
// doesn't support Node Buffer (even though it's just a sub-class
// of Uint8Array)
result[i][j] = new Uint8Array(result[i][j] as Buffer);
}
}