@ryuu-reinzz/haruka-lib 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main/socket.js +1 -1
- package/main/sqliteAuth.js +1 -1
- package/package.json +1 -1
package/main/socket.js
CHANGED
package/main/sqliteAuth.js
CHANGED
|
@@ -10,7 +10,7 @@ import Database from "better-sqlite3";
|
|
|
10
10
|
* Membuat atau mengambil auth state dari SQLite
|
|
11
11
|
* @param {string} dbPath - Lokasi file SQLite (contoh: "./auth.db")
|
|
12
12
|
*/
|
|
13
|
-
export async function useSQLiteAuthState(dbPath = "./auth.db", baileys) {
|
|
13
|
+
export default async function useSQLiteAuthState(dbPath = "./auth.db", baileys) {
|
|
14
14
|
const { proto, BufferJSON, initAuthCreds } = baileys;
|
|
15
15
|
const db = new Database(dbPath);
|
|
16
16
|
db.pragma("journal_mode = WAL");
|