mirror of
https://github.com/Unleash/unleash.git
synced 2025-08-13 13:48:59 +02:00
No need to extend Insert type now that Insert extends Settings
This commit is contained in:
parent
7456ae75f3
commit
6f8c2cacba
@ -16,7 +16,6 @@ import type {
|
||||
IProjectHealthUpdate,
|
||||
IProjectInsert,
|
||||
IProjectQuery,
|
||||
IProjectSettings,
|
||||
IProjectEnterpriseSettingsUpdate,
|
||||
IProjectStore,
|
||||
ProjectEnvironment,
|
||||
@ -199,9 +198,7 @@ class ProjectStore implements IProjectStore {
|
||||
});
|
||||
}
|
||||
|
||||
async create(
|
||||
project: IProjectInsert & IProjectSettings,
|
||||
): Promise<IProject> {
|
||||
async create(project: IProjectInsert): Promise<IProject> {
|
||||
const row = await this.db(TABLE)
|
||||
.insert({ ...this.fieldToRow(project), created_at: new Date() })
|
||||
.returning('*');
|
||||
|
Loading…
Reference in New Issue
Block a user