@ -78,7 +78,7 @@ export class ContactInformationAPI extends DataSource {
.select()
.skip(offset)
.take(limit)
.execute();
.getMany();
}
async personById (id: number) {
@ -83,11 +83,8 @@ export class LockUtils {
})
.where('id = :id', { id: id })
return await this.findById(connection, target, alias, id);
} else {
// lock was set
throw new GraphQLError('Entry locked by other user');
static async unlockEntity (connection: Connection, target: ObjectType<Lockable>, alias: string, id: number, userId: number): Promise<boolean> {