chore(config): 🤡 change db mock path
This commit is contained in:
parent
906f31b240
commit
258ca29be7
|
@ -1,13 +1,15 @@
|
|||
import { Db, Group } from '@cohabit/ressources_manager/mod.ts'
|
||||
|
||||
// Import Datas
|
||||
import groups from './mock/groups.json' with { type: 'json' }
|
||||
import users from './mock/users.json' with { type: 'json' }
|
||||
import { exists } from '$std/fs/exists.ts'
|
||||
import { ensureDir } from '$std/fs/mod.ts'
|
||||
import { User } from '@cohabit/ressources_manager/src/models/mod.ts'
|
||||
import { MailAddress } from '@cohabit/ressources_manager/types.ts'
|
||||
import { exists } from '$std/fs/exists.ts'
|
||||
import groups from ":src/db/mock/groups.json" with { type: 'json' }
|
||||
import users from ":src/db/mock/users.json" with { type: 'json' }
|
||||
|
||||
const dbPath = './_fresh/db.sqlite'
|
||||
await ensureDir('./cache')
|
||||
const dbPath = './cache/db.sqlite'
|
||||
const dbExist = await exists(dbPath)
|
||||
|
||||
export const db = await Db.init(dbPath)
|
||||
|
|
Loading…
Reference in a new issue