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,
|
IProjectHealthUpdate,
|
||||||
IProjectInsert,
|
IProjectInsert,
|
||||||
IProjectQuery,
|
IProjectQuery,
|
||||||
IProjectSettings,
|
|
||||||
IProjectEnterpriseSettingsUpdate,
|
IProjectEnterpriseSettingsUpdate,
|
||||||
IProjectStore,
|
IProjectStore,
|
||||||
ProjectEnvironment,
|
ProjectEnvironment,
|
||||||
@ -199,9 +198,7 @@ class ProjectStore implements IProjectStore {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async create(
|
async create(project: IProjectInsert): Promise<IProject> {
|
||||||
project: IProjectInsert & IProjectSettings,
|
|
||||||
): Promise<IProject> {
|
|
||||||
const row = await this.db(TABLE)
|
const row = await this.db(TABLE)
|
||||||
.insert({ ...this.fieldToRow(project), created_at: new Date() })
|
.insert({ ...this.fieldToRow(project), created_at: new Date() })
|
||||||
.returning('*');
|
.returning('*');
|
||||||
|
Loading…
Reference in New Issue
Block a user