-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: disable guest row in membership table (#1479)
* feat: disable guest row in membership table * refactor: update put item login schema instead of delete * refactor: update sdk * refactor: update query client * refactor: fix tests * refactor: apply PR requested changes
- Loading branch information
Showing
15 changed files
with
310 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import { ItemLoginSchema, ItemLoginSchemaType, PackedItem } from '@graasp/sdk'; | ||
|
||
import { v4 } from 'uuid'; | ||
import { | ||
ItemLoginSchema, | ||
ItemLoginSchemaFactory, | ||
ItemLoginSchemaType, | ||
PackedItem, | ||
} from '@graasp/sdk'; | ||
|
||
export const addItemLoginSchema = ( | ||
item: PackedItem, | ||
itemLoginSchemaType: ItemLoginSchemaType, | ||
): PackedItem & { itemLoginSchema: ItemLoginSchema } => ({ | ||
...item, | ||
itemLoginSchema: { | ||
itemLoginSchema: ItemLoginSchemaFactory({ | ||
item, | ||
type: itemLoginSchemaType, | ||
id: v4(), | ||
createdAt: '2021-08-11T12:56:36.834Z', | ||
updatedAt: '2021-08-11T12:56:36.834Z', | ||
}, | ||
}), | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.