Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const createBase = () =>
flow(
withFields({
id: context.commodo.fields.id()
}),
withStorage({ driver }),
withUser(context),
withSoftDelete(),
withCrudLogs()
)();
const createBase = ({ maxPerPage = 100 } = {}) =>
flow(
withFields({
id: context.commodo.fields.id()
}),
withStorage({ driver, maxPerPage }),
withUser(context),
withSoftDelete(),
withCrudLogs()
)();
const createBase = ({ maxPerPage = 100 } = {}) =>
flow(
withFields({
id: context.commodo.fields.id()
}),
withStorage({ driver, maxPerPage }),
withUser(context),
withSoftDelete(),
withCrudLogs()
)();
const createBase = () =>
flow(
withFields({
id: context.commodo.fields.id()
}),
withStorage({ driver }),
withUser(context),
withSoftDelete(),
withCrudLogs()
)();
const createBase = () =>
flow(
withFields({
id: context.commodo.fields.id()
}),
withStorage({ driver }),
withUser(context),
withSoftDelete(),
withCrudLogs()
)();
const createBase = () =>
flow(
withFields({
id: context.commodo.fields.id()
}),
withStorage({ driver }),
withUser(context),
withSoftDelete(),
withCrudLogs()
)();