From 31c7e6236fac07d2f6ece96eddd1b88caf57a992 Mon Sep 17 00:00:00 2001 From: George Radu <63563144+george-radu-cs@users.noreply.github.com> Date: Mon, 15 Apr 2024 15:58:42 +0300 Subject: [PATCH] [skip ci] Fix: Wrong file permission for database file store (#240) * fix: wrong file permission for database file store * sign cla --- .clabot | 2 +- src/utils/db.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.clabot b/.clabot index dac8271..dc94088 100644 --- a/.clabot +++ b/.clabot @@ -1,4 +1,4 @@ { - "contributors": ["azukaar", "jwr1", "Jogai", "InterN0te", "catmandx", "revam", "Kawanaao"], + "contributors": ["azukaar", "jwr1", "Jogai", "InterN0te", "catmandx", "revam", "Kawanaao", "george-radu-cs"], "message": "We require contributors to sign our [Contributor License Agreement](https://github.com/azukaar/Cosmos-Server/blob/master/cla.md). In order for us to review and merge your code, add yourself to the .clabot file as contributor, as a way of signing the CLA." } diff --git a/src/utils/db.go b/src/utils/db.go index 73c2b66..3d1fe71 100644 --- a/src/utils/db.go +++ b/src/utils/db.go @@ -130,7 +130,7 @@ var embeddedClientClose func() func GetEmbeddedCollection(applicationId string, collection string) (lungo.ICollection, func(), error) { opts := lungo.Options{ - Store: lungo.NewFileStore(CONFIGFOLDER + "database", 700), + Store: lungo.NewFileStore(CONFIGFOLDER + "database", 0700), } name := os.Getenv("MONGODB_NAME"); if name == "" { @@ -373,4 +373,4 @@ func initDB() { return // Handle error appropriately } } -} \ No newline at end of file +}