Added git hooks
This commit is contained in:
@@ -16,7 +16,10 @@ export type InsertMeta<T> = T & {
|
||||
|
||||
type GroupFilter = Filter<InsertMeta<GroupData>>
|
||||
|
||||
export async function setData(uuid: string|undefined, data: GroupData): Promise<string | undefined> {
|
||||
export async function setData(
|
||||
uuid: string | undefined,
|
||||
data: GroupData
|
||||
): Promise<string | undefined> {
|
||||
const collection = (await database.resolve())?.collection('setups')
|
||||
if (!collection) return
|
||||
if (!uuid) {
|
||||
|
||||
@@ -43,15 +43,16 @@ export function addSchemas() {
|
||||
type: 'object',
|
||||
required: ['groups', 'ignored', 'base'],
|
||||
properties: {
|
||||
groups: { type: 'object',
|
||||
groups: {
|
||||
type: 'object',
|
||||
additionalProperties: {
|
||||
type: 'object',
|
||||
required: ['name', 'exports', 'malls'],
|
||||
properties: {
|
||||
name: {type: 'string', minLength: 1},
|
||||
exports: {type: 'array', items: {type: 'string', minLength: 3}},
|
||||
malls: {type: 'array', items: {type: 'string', minLength: 3}}
|
||||
},
|
||||
name: { type: 'string', minLength: 1 },
|
||||
exports: { type: 'array', items: { type: 'string', minLength: 3 } },
|
||||
malls: { type: 'array', items: { type: 'string', minLength: 3 } }
|
||||
}
|
||||
}
|
||||
},
|
||||
ignored: { type: 'array', items: { type: 'string', minLength: 3 } },
|
||||
|
||||
Reference in New Issue
Block a user