Update db interface

This commit is contained in:
Mariano Uvalle 2023-11-06 07:33:09 +00:00
parent b01c6fb05e
commit c3eb1d72b4
2 changed files with 2 additions and 2 deletions

View file

@ -43,7 +43,7 @@ func (d *localDB) GetUser(id string) (*api.User, error) {
return u, nil
}
func (d *localDB) PutDevice(pubKey, userId string) (string, error) {
func (d *localDB) PutDevice(pubKey []byte, userId string) (string, error) {
id := ulid.Make().String()
if _, ok := d.users[userId]; !ok {
return "", errors.New("user does not exist")